Browse Source

Plan 9 from Bell Labs 2005-12-15

David du Colombier 15 years ago
parent
commit
538a74cc5f

+ 15 - 15
dist/replica/_plan9.db

@@ -117,7 +117,7 @@
 386/bin/aux/mnihongo - 775 sys sys 1132506839 139667
 386/bin/aux/mouse - 775 sys sys 1130384253 44044
 386/bin/aux/ms2 - 775 sys sys 1131296673 87464
-386/bin/aux/msexceltables - 775 sys sys 1130594710 81256
+386/bin/aux/msexceltables - 775 sys sys 1134568941 81256
 386/bin/aux/mswordstrings - 775 sys sys 1130594710 65340
 386/bin/aux/na - 775 sys sys 1130594710 154218
 386/bin/aux/nfsmount - 775 sys sys 1130594711 234124
@@ -185,7 +185,7 @@
 386/bin/cp - 775 sys sys 1130594723 63247
 386/bin/cpp - 775 sys sys 1132506846 149875
 386/bin/cpu - 775 sys sys 1134389862 139238
-386/bin/crop - 775 sys sys 1130594724 116040
+386/bin/crop - 775 sys sys 1134568941 116040
 386/bin/date - 775 sys sys 1130384272 43279
 386/bin/db - 775 sys sys 1134389862 345823
 386/bin/dc - 775 sys sys 1130594725 99051
@@ -214,7 +214,7 @@
 386/bin/disk/prep - 775 sys sys 1130594730 95863
 386/bin/disk/sacfs - 775 sys sys 1020319075 79882
 386/bin/dossrv - 775 sys sys 1134389863 137779
-386/bin/du - 775 sys sys 1130594730 73605
+386/bin/du - 775 sys sys 1134568941 73748
 386/bin/echo - 775 sys sys 1130594730 57387
 386/bin/ed - 775 sys sys 1130594731 93057
 386/bin/eqn - 775 sys sys 1134151330 243031
@@ -7262,22 +7262,22 @@ sys/man/1/con - 664 sys sys 1134330721 4306
 sys/man/1/cp - 664 sys sys 1110816882 1947
 sys/man/1/cpp - 664 sys sys 944959674 2105
 sys/man/1/cpu - 664 sys sys 1128483118 3804
-sys/man/1/crop - 664 sys sys 984709627 2596
+sys/man/1/crop - 664 sys sys 1134557540 2630
 sys/man/1/date - 664 sys sys 969499884 996
 sys/man/1/db - 664 sys sys 1015024738 17862
 sys/man/1/dc - 664 sys sys 1113743325 4834
 sys/man/1/dd - 664 sys sys 1055693436 3346
 sys/man/1/delkey - 664 sys sys 1128483118 779
 sys/man/1/deroff - 664 sys sys 1113743324 1826
-sys/man/1/diff - 664 sys sys 1114697100 3085
-sys/man/1/doc2txt - 664 sys sys 1105020018 2077
+sys/man/1/diff - 664 sys sys 1134556573 3085
+sys/man/1/doc2txt - 664 sys sys 1134556783 2104
 sys/man/1/doctype - 664 sys sys 1113743325 860
-sys/man/1/du - 664 sys sys 1017166323 1410
+sys/man/1/du - 664 sys sys 1134556965 1358
 sys/man/1/echo - 664 sys sys 1079969656 430
 sys/man/1/ed - 664 sys sys 961259286 13916
 sys/man/1/emacs - 664 sys sys 944959673 199
-sys/man/1/eqn - 664 sys sys 944959675 5655
-sys/man/1/expect - 664 sys sys 1058791094 3023
+sys/man/1/eqn - 664 sys sys 1134592617 5655
+sys/man/1/expect - 664 sys sys 1134557311 3014
 sys/man/1/faces - 664 sys sys 1113743326 2395
 sys/man/1/factor - 664 sys sys 957920005 1019
 sys/man/1/file - 664 sys sys 1015024739 1578
@@ -9566,7 +9566,7 @@ sys/src/cmd/aux/mnihongo/mnihongo.c - 664 sys sys 946759402 6406
 sys/src/cmd/aux/mnihongo/tmac.nihongo - 664 sys sys 944960789 22
 sys/src/cmd/aux/mouse.c - 664 sys sys 1063855425 7049
 sys/src/cmd/aux/ms2.c - 664 sys sys 1124305056 3153
-sys/src/cmd/aux/msexceltables.c - 664 sys sys 1124933681 13912
+sys/src/cmd/aux/msexceltables.c - 664 sys sys 1134556625 13913
 sys/src/cmd/aux/mswordstrings.c - 664 sys sys 952201344 5767
 sys/src/cmd/aux/na - 20000000775 sys sys 955036627 0
 sys/src/cmd/aux/na/mkfile - 664 sys sys 955036627 121
@@ -9802,7 +9802,7 @@ sys/src/cmd/cpp/nlist.c - 664 sys sys 1116770041 4645
 sys/src/cmd/cpp/test.c - 664 sys sys 944960879 47
 sys/src/cmd/cpp/tokens.c - 664 sys sys 944960879 6755
 sys/src/cmd/cpu.c - 664 sys sys 1134305456 21135
-sys/src/cmd/crop.c - 664 sys sys 1039753034 4136
+sys/src/cmd/crop.c - 664 sys sys 1134557476 4137
 sys/src/cmd/date.c - 664 sys sys 944961351 449
 sys/src/cmd/db - 20000000775 sys sys 988249965 0
 sys/src/cmd/db/command.c - 664 sys sys 1131297926 4377
@@ -9826,7 +9826,7 @@ sys/src/cmd/deroff.c - 664 sys sys 1017679319 14611
 sys/src/cmd/dial - 20000000775 sys sys 1058789955 0
 sys/src/cmd/dial/at.c - 664 sys sys 1058789951 2011
 sys/src/cmd/dial/drain.c - 664 sys sys 1058789952 241
-sys/src/cmd/dial/expect.c - 664 sys sys 1058789952 1595
+sys/src/cmd/dial/expect.c - 664 sys sys 1134557318 1595
 sys/src/cmd/dial/mkfile - 664 sys sys 1058789952 191
 sys/src/cmd/dial/pass.c - 664 sys sys 1059696920 1297
 sys/src/cmd/dict - 20000000775 sys sys 944960882 0
@@ -9864,7 +9864,7 @@ sys/src/cmd/diff/diff.h - 664 sys sys 1106723609 794
 sys/src/cmd/diff/diffdir.c - 664 sys sys 1014925333 1791
 sys/src/cmd/diff/diffio.c - 664 sys sys 1114696977 6599
 sys/src/cmd/diff/diffreg.c - 664 sys sys 1114037841 8825
-sys/src/cmd/diff/main.c - 664 sys sys 1129722806 4340
+sys/src/cmd/diff/main.c - 664 sys sys 1134556503 4338
 sys/src/cmd/diff/mkfile - 664 sys sys 944960882 141
 sys/src/cmd/disk - 20000000775 sys sys 1018468546 0
 sys/src/cmd/disk/9660 - 20000000775 sys sys 1017681443 0
@@ -9957,7 +9957,7 @@ sys/src/cmd/dossrv/lock.c - 664 sys sys 954305577 504
 sys/src/cmd/dossrv/mkfile - 664 sys sys 1032057270 310
 sys/src/cmd/dossrv/xfile.c - 664 sys sys 1017679315 4391
 sys/src/cmd/dossrv/xfssrv.c - 664 sys sys 1018323479 3397
-sys/src/cmd/du.c - 664 sys sys 1091379562 3302
+sys/src/cmd/du.c - 664 sys sys 1134556965 3420
 sys/src/cmd/echo.c - 664 sys sys 1081736344 581
 sys/src/cmd/ed.c - 664 sys sys 1121977159 21944
 sys/src/cmd/eqn - 20000000775 sys sys 944960990 0
@@ -13577,7 +13577,7 @@ sys/src/cmd/vi/icache.c - 664 sys sys 944961342 184
 sys/src/cmd/vi/mem.c - 664 sys sys 944961342 4234
 sys/src/cmd/vi/mips.h - 664 sys sys 1131292943 4837
 sys/src/cmd/vi/mkfile - 664 sys sys 1124229127 289
-sys/src/cmd/vi/run.c - 664 sys sys 1014926560 13214
+sys/src/cmd/vi/run.c - 664 sys sys 1134537330 13213
 sys/src/cmd/vi/special.c - 664 sys sys 944961342 6723
 sys/src/cmd/vi/stats.c - 664 sys sys 1067746789 5386
 sys/src/cmd/vi/symbols.c - 664 sys sys 1121977746 1744

+ 15 - 15
dist/replica/plan9.db

@@ -117,7 +117,7 @@
 386/bin/aux/mnihongo - 775 sys sys 1132506839 139667
 386/bin/aux/mouse - 775 sys sys 1130384253 44044
 386/bin/aux/ms2 - 775 sys sys 1131296673 87464
-386/bin/aux/msexceltables - 775 sys sys 1130594710 81256
+386/bin/aux/msexceltables - 775 sys sys 1134568941 81256
 386/bin/aux/mswordstrings - 775 sys sys 1130594710 65340
 386/bin/aux/na - 775 sys sys 1130594710 154218
 386/bin/aux/nfsmount - 775 sys sys 1130594711 234124
@@ -185,7 +185,7 @@
 386/bin/cp - 775 sys sys 1130594723 63247
 386/bin/cpp - 775 sys sys 1132506846 149875
 386/bin/cpu - 775 sys sys 1134389862 139238
-386/bin/crop - 775 sys sys 1130594724 116040
+386/bin/crop - 775 sys sys 1134568941 116040
 386/bin/date - 775 sys sys 1130384272 43279
 386/bin/db - 775 sys sys 1134389862 345823
 386/bin/dc - 775 sys sys 1130594725 99051
@@ -214,7 +214,7 @@
 386/bin/disk/prep - 775 sys sys 1130594730 95863
 386/bin/disk/sacfs - 775 sys sys 1020319075 79882
 386/bin/dossrv - 775 sys sys 1134389863 137779
-386/bin/du - 775 sys sys 1130594730 73605
+386/bin/du - 775 sys sys 1134568941 73748
 386/bin/echo - 775 sys sys 1130594730 57387
 386/bin/ed - 775 sys sys 1130594731 93057
 386/bin/eqn - 775 sys sys 1134151330 243031
@@ -7262,22 +7262,22 @@ sys/man/1/con - 664 sys sys 1134330721 4306
 sys/man/1/cp - 664 sys sys 1110816882 1947
 sys/man/1/cpp - 664 sys sys 944959674 2105
 sys/man/1/cpu - 664 sys sys 1128483118 3804
-sys/man/1/crop - 664 sys sys 984709627 2596
+sys/man/1/crop - 664 sys sys 1134557540 2630
 sys/man/1/date - 664 sys sys 969499884 996
 sys/man/1/db - 664 sys sys 1015024738 17862
 sys/man/1/dc - 664 sys sys 1113743325 4834
 sys/man/1/dd - 664 sys sys 1055693436 3346
 sys/man/1/delkey - 664 sys sys 1128483118 779
 sys/man/1/deroff - 664 sys sys 1113743324 1826
-sys/man/1/diff - 664 sys sys 1114697100 3085
-sys/man/1/doc2txt - 664 sys sys 1105020018 2077
+sys/man/1/diff - 664 sys sys 1134556573 3085
+sys/man/1/doc2txt - 664 sys sys 1134556783 2104
 sys/man/1/doctype - 664 sys sys 1113743325 860
-sys/man/1/du - 664 sys sys 1017166323 1410
+sys/man/1/du - 664 sys sys 1134556965 1358
 sys/man/1/echo - 664 sys sys 1079969656 430
 sys/man/1/ed - 664 sys sys 961259286 13916
 sys/man/1/emacs - 664 sys sys 944959673 199
-sys/man/1/eqn - 664 sys sys 944959675 5655
-sys/man/1/expect - 664 sys sys 1058791094 3023
+sys/man/1/eqn - 664 sys sys 1134592617 5655
+sys/man/1/expect - 664 sys sys 1134557311 3014
 sys/man/1/faces - 664 sys sys 1113743326 2395
 sys/man/1/factor - 664 sys sys 957920005 1019
 sys/man/1/file - 664 sys sys 1015024739 1578
@@ -9566,7 +9566,7 @@ sys/src/cmd/aux/mnihongo/mnihongo.c - 664 sys sys 946759402 6406
 sys/src/cmd/aux/mnihongo/tmac.nihongo - 664 sys sys 944960789 22
 sys/src/cmd/aux/mouse.c - 664 sys sys 1063855425 7049
 sys/src/cmd/aux/ms2.c - 664 sys sys 1124305056 3153
-sys/src/cmd/aux/msexceltables.c - 664 sys sys 1124933681 13912
+sys/src/cmd/aux/msexceltables.c - 664 sys sys 1134556625 13913
 sys/src/cmd/aux/mswordstrings.c - 664 sys sys 952201344 5767
 sys/src/cmd/aux/na - 20000000775 sys sys 955036627 0
 sys/src/cmd/aux/na/mkfile - 664 sys sys 955036627 121
@@ -9802,7 +9802,7 @@ sys/src/cmd/cpp/nlist.c - 664 sys sys 1116770041 4645
 sys/src/cmd/cpp/test.c - 664 sys sys 944960879 47
 sys/src/cmd/cpp/tokens.c - 664 sys sys 944960879 6755
 sys/src/cmd/cpu.c - 664 sys sys 1134305456 21135
-sys/src/cmd/crop.c - 664 sys sys 1039753034 4136
+sys/src/cmd/crop.c - 664 sys sys 1134557476 4137
 sys/src/cmd/date.c - 664 sys sys 944961351 449
 sys/src/cmd/db - 20000000775 sys sys 988249965 0
 sys/src/cmd/db/command.c - 664 sys sys 1131297926 4377
@@ -9826,7 +9826,7 @@ sys/src/cmd/deroff.c - 664 sys sys 1017679319 14611
 sys/src/cmd/dial - 20000000775 sys sys 1058789955 0
 sys/src/cmd/dial/at.c - 664 sys sys 1058789951 2011
 sys/src/cmd/dial/drain.c - 664 sys sys 1058789952 241
-sys/src/cmd/dial/expect.c - 664 sys sys 1058789952 1595
+sys/src/cmd/dial/expect.c - 664 sys sys 1134557318 1595
 sys/src/cmd/dial/mkfile - 664 sys sys 1058789952 191
 sys/src/cmd/dial/pass.c - 664 sys sys 1059696920 1297
 sys/src/cmd/dict - 20000000775 sys sys 944960882 0
@@ -9864,7 +9864,7 @@ sys/src/cmd/diff/diff.h - 664 sys sys 1106723609 794
 sys/src/cmd/diff/diffdir.c - 664 sys sys 1014925333 1791
 sys/src/cmd/diff/diffio.c - 664 sys sys 1114696977 6599
 sys/src/cmd/diff/diffreg.c - 664 sys sys 1114037841 8825
-sys/src/cmd/diff/main.c - 664 sys sys 1129722806 4340
+sys/src/cmd/diff/main.c - 664 sys sys 1134556503 4338
 sys/src/cmd/diff/mkfile - 664 sys sys 944960882 141
 sys/src/cmd/disk - 20000000775 sys sys 1018468546 0
 sys/src/cmd/disk/9660 - 20000000775 sys sys 1017681443 0
@@ -9957,7 +9957,7 @@ sys/src/cmd/dossrv/lock.c - 664 sys sys 954305577 504
 sys/src/cmd/dossrv/mkfile - 664 sys sys 1032057270 310
 sys/src/cmd/dossrv/xfile.c - 664 sys sys 1017679315 4391
 sys/src/cmd/dossrv/xfssrv.c - 664 sys sys 1018323479 3397
-sys/src/cmd/du.c - 664 sys sys 1091379562 3302
+sys/src/cmd/du.c - 664 sys sys 1134556965 3420
 sys/src/cmd/echo.c - 664 sys sys 1081736344 581
 sys/src/cmd/ed.c - 664 sys sys 1121977159 21944
 sys/src/cmd/eqn - 20000000775 sys sys 944960990 0
@@ -13577,7 +13577,7 @@ sys/src/cmd/vi/icache.c - 664 sys sys 944961342 184
 sys/src/cmd/vi/mem.c - 664 sys sys 944961342 4234
 sys/src/cmd/vi/mips.h - 664 sys sys 1131292943 4837
 sys/src/cmd/vi/mkfile - 664 sys sys 1124229127 289
-sys/src/cmd/vi/run.c - 664 sys sys 1014926560 13214
+sys/src/cmd/vi/run.c - 664 sys sys 1134537330 13213
 sys/src/cmd/vi/special.c - 664 sys sys 944961342 6723
 sys/src/cmd/vi/stats.c - 664 sys sys 1067746789 5386
 sys/src/cmd/vi/symbols.c - 664 sys sys 1121977746 1744

+ 16 - 0
dist/replica/plan9.log

@@ -23621,3 +23621,19 @@
 1134505845 0 c 386/bin/wikifs - 775 sys sys 1134505646 203414
 1134505845 1 c 386/bin/auth/factotum - 775 sys sys 1134505645 318360
 1134505845 2 c 386/bin/tlssrv - 775 sys sys 1134505646 198760
+1134538255 0 c sys/src/cmd/vi/run.c - 664 sys sys 1134537330 13213
+1134558060 0 c sys/man/1/du - 664 sys sys 1134556965 1358
+1134558060 1 c sys/man/1/eqn - 664 sys sys 1134557227 5663
+1134558060 2 c sys/man/1/crop - 664 sys sys 1134557540 2630
+1134558060 3 c sys/man/1/diff - 664 sys sys 1134556573 3085
+1134558060 4 c sys/man/1/doc2txt - 664 sys sys 1134556783 2104
+1134558060 5 c sys/man/1/expect - 664 sys sys 1134557311 3014
+1134558060 6 c sys/src/cmd/aux/msexceltables.c - 664 sys sys 1134556625 13913
+1134558060 7 c sys/src/cmd/crop.c - 664 sys sys 1134557476 4137
+1134558060 8 c sys/src/cmd/diff/main.c - 664 sys sys 1134556503 4338
+1134558060 9 c sys/src/cmd/dial/expect.c - 664 sys sys 1134557318 1595
+1134558060 10 c sys/src/cmd/du.c - 664 sys sys 1134556965 3420
+1134570664 0 c 386/bin/crop - 775 sys sys 1134568941 116040
+1134570664 1 c 386/bin/du - 775 sys sys 1134568941 73748
+1134570664 2 c 386/bin/aux/msexceltables - 775 sys sys 1134568941 81256
+1134594068 0 c sys/man/1/eqn - 664 sys sys 1134592617 5655

+ 12 - 6
sys/man/1/crop

@@ -4,6 +4,12 @@ crop, iconv \- frame, crop, and convert image
 .SH SYNOPSIS
 .B crop
 [
+.B -b
+.I red
+.I green
+.I blue
+]
+[
 .BI -c
 .I red
 .I green
@@ -13,17 +19,17 @@ crop, iconv \- frame, crop, and convert image
 .B -i
 .I n
 |
-.B -x
-.I dx
-|
-.B -y
-.I dy
-|
 .B -r
 .I minx
 .I miny
 .I maxx
 .I maxy
+|
+.B -x
+.I dx
+|
+.B -y
+.I dy
 ]
 [
 .B -t

+ 1 - 1
sys/man/1/diff

@@ -4,7 +4,7 @@ diff \- differential file comparator
 .SH SYNOPSIS
 .B diff
 [
-.B -acefmnbwr
+.B -abcefmnrw
 ] file1 ... file2
 .SH DESCRIPTION
 .I Diff

+ 14 - 12
sys/man/1/doc2txt

@@ -24,13 +24,10 @@ doc2txt, xls2txt olefs, mswordstrings msexceltable \- extract printable strings
 .br
 .B aux/msexceltable
 [
-.B -n
-] [
-.B -t
-] [
-.B -a
+.B -aDnt
 ] [
-.BI -d delim
+.B -d
+.I delim
 ]
 .I /mnt/doc/Workbook
 .SH DESCRIPTION
@@ -59,17 +56,22 @@ a text stream.
 .I Msexceltables
 may be given options to control the formatting of its output.
 .TP
--n
+.B -n
 Disables field padding to colum width.
 .TP
--t
+.B -t
 Truncate fields to the colum width.
 .TP
--a
+.B -a
 Attempt conversion of non-tabular sheets in the workbook. (charts).
 .TP
--d \fIdelim\fR
-Sets the interfield delimiter to the string \fIdelim\fR, by default a single space.
+.BI -d " delim
+Sets the interfield delimiter to the string
+.IR delim ,
+by default a single space.
+.TP
+.B -D
+Enables debugging output.
 .SH SOURCE
 .B /sys/src/cmd/aux/mswordstrings.c
 .br
@@ -95,4 +97,4 @@ available on line at Microsoft's developer home page.
 .I http://snake.cs.tu-berlin.de:8081/~schwartz/pmh 
 .br
 ``OpenOffice.Org's Excel Documentation'',
-.I http:\/\/sc.openoffice.org/excelfileformat.pdf
+.I http://sc.openoffice.org/excelfileformat.pdf

+ 3 - 20
sys/man/1/du

@@ -4,28 +4,11 @@ du \- disk usage
 .SH SYNOPSIS
 .B du
 [
-.B -a
-]
-[
-.B -f
-]
-[
-.B -n
-]
-[
-.B -q
+.B -afnqstu
 ]
 [
-.B -s
-]
-[
-.B -t
-]
-[
-.B -u
-]
-[
-.BI -b size
+.B -b
+.I size
 ]
 [
 .I file ...

+ 1 - 3
sys/man/1/expect

@@ -13,12 +13,10 @@ atcommand
 .br
 .B dial/expect
 [
-.B -q
+.B -iq
 ] [
 .B -t
 .I seconds
-] [
-.B -i
 ]
 .I goodstring
 [

+ 1 - 1
sys/src/cmd/aux/msexceltables.c

@@ -703,7 +703,7 @@ xls2csv(Biobuf *bp)
 void
 usage(void)
 {
-	fprint(2, "usage: %s [-nta] [-d delim] file.xls\n", argv0);
+	fprint(2, "usage: %s [-aDnt] [-d delim] file.xls\n", argv0);
 	exits("usage");
 }
 

+ 3 - 3
sys/src/cmd/crop.c

@@ -16,9 +16,9 @@ enum
 void
 usage(void)
 {
-	fprint(2, "usage: crop [-c rgb] [-i ±inset | -r R | -x ±inset | -y ±inset] [-t tx ty] [-b rgb ] [imagefile]\n");
-	fprint(2, "\twhere R is a rectangle minx miny maxx maxy\n");
-	fprint(2, "\twhere rgb is a color red green blue\n");
+	fprint(2, "usage: crop [-b rgb] [-c rgb] [-i ±inset | -r R | -x ±inset | -y ±inset] [-t tx ty] [imagefile]\n");
+	fprint(2, "\twhere R is a rectangle: minx miny maxx maxy\n");
+	fprint(2, "\twhere rgb is a color: red green blue\n");
 	exits("usage");
 }
 

+ 1 - 1
sys/src/cmd/dial/expect.c

@@ -4,7 +4,7 @@
 void
 usage(void)
 {
-	fprint(2, "usage: %s [-t secs] [-iq] good-string [bad-strings]\n", argv0);
+	fprint(2, "usage: %s [-q] [-t secs] goodstring [badstring ...]\n", argv0);
 	exits("usage");
 }
 

+ 1 - 1
sys/src/cmd/diff/main.c

@@ -11,7 +11,7 @@ Biobuf	stdout;
 static char *tmp[] = {"/tmp/diff1XXXXXXXXXXX", "/tmp/diff2XXXXXXXXXXX"};
 static int whichtmp;
 static char *progname;
-static char usage[] = "diff [ -acefmnbwr ] file1 ... file2\n";
+static char usage[] = "diff [-acefmnbwr] file1 ... file2\n";
 
 static void
 rmtmpfiles(void)

+ 9 - 0
sys/src/cmd/du.c

@@ -18,6 +18,13 @@ int	qflag;
 char	*fmt = "%llud\t%q\n";
 vlong	blocksize = 1024LL;
 
+void
+usage(void)
+{
+	fprint(2, "usage: du [-afnqstu] [-b size] [file...]\n");
+	exits("usage");
+}
+
 void
 main(int argc, char *argv[])
 {
@@ -61,6 +68,8 @@ main(int argc, char *argv[])
 				blocksize *= 1024;
 		}
 		break;
+	default:
+		usage();
 	} ARGEND
 	if(argc==0)
 		print(fmt, du(".", dirstat(".")), ".");

+ 1 - 1
sys/src/cmd/vi/run.c

@@ -369,7 +369,7 @@ Ilwr(ulong inst)
 		reg.r[rt] = (v>>16) | (reg.r[rt] & 0xffff0000);
 		break;
 	case 3:
-		reg.r[rt] = (v>>8) | (reg.r[rt] & 0xff0000000);
+		reg.r[rt] = (v>>8) | (reg.r[rt] & 0xff000000);
 		break;
 	}
 }