Closed psbhlw closed 10 years ago
Displacement in instruction like LD A,(IY—50) will be treated as +50 if a 'minus' sign has code 151 (dec, cp1251).
In attached archive:
code.a80 - example of such a code code.lst - generated listing
Listing cut:
10 800B FD 7E 32 LD A,(IY—50)
Value of #32 is wrong here, #CE should be instead with a real 'minus'. Issuing an error message is ok for this case.
UUencoded archive:
section 1 of 1 of file wrong_minus.tar.gz < MxUUE v0.6.7 (c) 1999-2004 Maxxi > begin 644 wrong_minus.tar.gz M'XL(".`6"5,$`'=R;VYG7VUI;G5S+G1A<@#LW,EK$U$<P/&7"*X$"^("BCZK MN&"K,]G56M,QJ?M"%=P27*,(:M56$1&7@_^`%_'@Q9-X4#Q[$?4B"AX\J"@8 ME]&H39H6H>+2^-XD-6V-2\&*Z/<3.LM[O]]O-M[T04.W-6Y/SMP2-D0_,@TC M%`I)(36CV[HH%/!)T^LSS	_C]JB7@-P)2].M)0?OZ#+8G#^W:EI1'#C?M M2VYK/G!PC^D->X9ZAG;U-Q[8*2>%#</P#&UJWG*@6?<MC:UW^F*+97=S92[U M*F>_MS-I6[;F[-S'9ZE,^G6I5D-LM7K$5=,6KY]A3M?Q;4]SV389>)Z53]/M M*=F6;FNW6S+9U[+5SMDM=D9OUB^K6[C:,W39RI6K=`UK\9J>-=Z\33U+OT_) M3.IEJCTUOW2T)0UJL:&JD*@C7[ZP6ZJDW?8V+3-V,;X4OBRJ%G6Z\)F`,5V% M=[0[%_(F^Z)8//NZ>+"T3+]R3G9FX41GRF5UJ]=L6MK]2M?TO#//LJ^>Y5+M M.K$U^Z(UEWV>2[6T?-1W<W=RKTSN/R@G5W^]P5UY35L.)9OV;I&5SFA56Y55 MSK/H&;%UU]YBQ(+**J=&E:I9BBG[_`OQHE_];/Q+,U0:_P%3CW_3'V3\_PD? M/]]V75(_>Z=]^'S,>TO@_^*,_]U-S:(?_63\FP&_K_?X#_I\C/\_P3#ULU!D M=S^>%1C><CFJW5>NO<P,PM!SO'#OP.*O/2-0KE.U![O:ZZU2>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@Y>@`: "`@!M ` end sum -r/size 31302/1963 section (from "begin" to "end") sum -r/size 24803/1397 entire input file
Fixed with possible regressions due to whitespaces processing' change.
Displacement in instruction like LD A,(IY—50) will be treated as +50 if a 'minus' sign has code 151 (dec, cp1251).
In attached archive:
Listing cut:
Value of #32 is wrong here, #CE should be instead with a real 'minus'. Issuing an error message is ok for this case.
UUencoded archive: