Mercurial > hg > Members > kono > nitros9-code
changeset 2895:92301a2c0eb7 lwtools-port
os9l2bbs: Avoid overflow error on 8-bit offset indexed mode
LWTOOLS 4.9 reports error in this case, so change the $FFE0
offsets to an equivalent -$20 offset.
line wrap: on
line diff
--- a/3rdparty/packages/os9l2bbs/cmds/AnsiEd.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/AnsiEd.asm Sat Jan 11 14:10:31 2014 +0100 @@ -3911,7 +3911,7 @@ L252A pshs U * 252A 34 40 4@ ldd #-106 * 252C CC FF 96 L.. lbsr _stkcheck * 252F 17 DB DD .[] - leas <$FFE0,S * 2532 32 E8 E0 2h` + leas -$20,S * 2532 32 E8 E0 2h` leax 0,S * 2535 30 E4 0d pshs X * 2537 34 10 4. clra * 2539 4F O @@ -5094,7 +5094,7 @@ clra * 3472 4F O andb #192 * 3473 C4 C0 D@ bne L34A4 * 3475 26 2D &- - leas <$FFE0,S * 3477 32 E8 E0 2h` + leas -$20,S * 3477 32 E8 E0 2h` leax 0,S * 347A 30 E4 0d pshs X * 347C 34 10 4. ldd U0008,U * 347E EC 48 lH
--- a/3rdparty/packages/os9l2bbs/cmds/BBS.build.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/BBS.build.asm Sat Jan 11 14:10:31 2014 +0100 @@ -429,7 +429,7 @@ clra * 047D 4F O ldb #0 * 047E C6 00 F. os9 I$GetStt * 0480 10 3F 8D .?. - leax <$FFE0,X * 0483 30 88 E0 0.` + leax -$20,X * 0483 30 88 E0 0.` clr <$0024,X * 0486 6F 88 24 o.$ leax <$0020,X * 0489 30 88 20 0. os9 I$SetStt * 048C 10 3F 8E .?. @@ -440,7 +440,7 @@ clra * 0496 4F O ldb #0 * 0497 C6 00 F. os9 I$GetStt * 0499 10 3F 8D .?. - leax <$FFE0,X * 049C 30 88 E0 0.` + leax -$20,X * 049C 30 88 E0 0.` lda #1 * 049F 86 01 .. sta <$0024,X * 04A1 A7 88 24 '.$ leax <$0020,X * 04A4 30 88 20 0.
--- a/3rdparty/packages/os9l2bbs/cmds/BBS.mail.post.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/BBS.mail.post.asm Sat Jan 11 14:10:31 2014 +0100 @@ -621,7 +621,7 @@ clra * 0727 4F O ldb #0 * 0728 C6 00 F. os9 I$GetStt * 072A 10 3F 8D .?. - leax <$FFE0,X * 072D 30 88 E0 0.` + leax -$20,X * 072D 30 88 E0 0.` clr <$0024,X * 0730 6F 88 24 o.$ leax <$0020,X * 0733 30 88 20 0. os9 I$SetStt * 0736 10 3F 8E .?. @@ -631,7 +631,7 @@ clra * 0741 4F O ldb #0 * 0742 C6 00 F. os9 I$GetStt * 0744 10 3F 8D .?. - leax <$FFE0,X * 0747 30 88 E0 0.` + leax -$20,X * 0747 30 88 E0 0.` lda #1 * 074A 86 01 .. sta <$0024,X * 074C A7 88 24 '.$ leax <$0020,X * 074F 30 88 20 0.
--- a/3rdparty/packages/os9l2bbs/cmds/BBS.post.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/BBS.post.asm Sat Jan 11 14:10:31 2014 +0100 @@ -684,7 +684,7 @@ clra * 07CC 4F O ldb #0 * 07CD C6 00 F. os9 I$GetStt * 07CF 10 3F 8D .?. - leax <$FFE0,X * 07D2 30 88 E0 0.` + leax -$20,X * 07D2 30 88 E0 0.` clr <$0024,X * 07D5 6F 88 24 o.$ leax <$0020,X * 07D8 30 88 20 0. os9 I$SetStt * 07DB 10 3F 8E .?. @@ -694,7 +694,7 @@ clra * 07E6 4F O ldb #0 * 07E7 C6 00 F. os9 I$GetStt * 07E9 10 3F 8D .?. - leax <$FFE0,X * 07EC 30 88 E0 0.` + leax -$20,X * 07EC 30 88 E0 0.` lda #1 * 07EF 86 01 .. sta <$0024,X * 07F1 A7 88 24 '.$ leax <$0020,X * 07F4 30 88 20 0.
--- a/3rdparty/packages/os9l2bbs/cmds/BBS.reply.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/BBS.reply.asm Sat Jan 11 14:10:31 2014 +0100 @@ -672,7 +672,7 @@ clra * 07A1 4F O ldb #0 * 07A2 C6 00 F. os9 I$GetStt * 07A4 10 3F 8D .?. - leax <$FFE0,X * 07A7 30 88 E0 0.` + leax -$20,X * 07A7 30 88 E0 0.` clr <$0024,X * 07AA 6F 88 24 o.$ leax <$0020,X * 07AD 30 88 20 0. os9 I$SetStt * 07B0 10 3F 8E .?. @@ -682,7 +682,7 @@ clra * 07BB 4F O ldb #0 * 07BC C6 00 F. os9 I$GetStt * 07BE 10 3F 8D .?. - leax <$FFE0,X * 07C1 30 88 E0 0.` + leax -$20,X * 07C1 30 88 E0 0.` lda #1 * 07C4 86 01 .. sta <$0024,X * 07C6 A7 88 24 '.$ leax <$0020,X * 07C9 30 88 20 0.
--- a/3rdparty/packages/os9l2bbs/cmds/DLD.add.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/DLD.add.asm Sat Jan 11 14:10:31 2014 +0100 @@ -582,7 +582,7 @@ clra * 06F8 4F O ldb #0 * 06F9 C6 00 F. os9 I$GetStt * 06FB 10 3F 8D .?. - leax <$FFE0,X * 06FE 30 88 E0 0.` + leax -$20,X * 06FE 30 88 E0 0.` clr <$0024,X * 0701 6F 88 24 o.$ leax <$0020,X * 0704 30 88 20 0. os9 I$SetStt * 0707 10 3F 8E .?. @@ -592,7 +592,7 @@ clra * 0711 4F O ldb #0 * 0712 C6 00 F. os9 I$GetStt * 0714 10 3F 8D .?. - leax <$FFE0,X * 0717 30 88 E0 0.` + leax -$20,X * 0717 30 88 E0 0.` lda #1 * 071A 86 01 .. sta <$0024,X * 071C A7 88 24 '.$ leax <$0020,X * 071F 30 88 20 0.
--- a/3rdparty/packages/os9l2bbs/cmds/DLD.validate.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/DLD.validate.asm Sat Jan 11 14:10:31 2014 +0100 @@ -765,7 +765,7 @@ clra * 09ED 4F O ldb #0 * 09EE C6 00 F. os9 I$GetStt * 09F0 10 3F 8D .?. - leax <$FFE0,X * 09F3 30 88 E0 0.` + leax -$20,X * 09F3 30 88 E0 0.` clr <$0024,X * 09F6 6F 88 24 o.$ leax <$0020,X * 09F9 30 88 20 0. os9 I$SetStt * 09FC 10 3F 8E .?. @@ -775,7 +775,7 @@ clra * 0A06 4F O ldb #0 * 0A07 C6 00 F. os9 I$GetStt * 0A09 10 3F 8D .?. - leax <$FFE0,X * 0A0C 30 88 E0 0.` + leax -$20,X * 0A0C 30 88 E0 0.` lda #1 * 0A0F 86 01 .. sta <$0024,X * 0A11 A7 88 24 '.$ leax <$0020,X * 0A14 30 88 20 0.
--- a/3rdparty/packages/os9l2bbs/cmds/Dloadx.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/Dloadx.asm Sat Jan 11 14:10:31 2014 +0100 @@ -63,7 +63,7 @@ clra * 0130 4F O clrb * 0131 5F _ os9 I$GetStt * 0132 10 3F 8D .?. - leax <$FFE0,X * 0135 30 88 E0 0.` + leax -$20,X * 0135 30 88 E0 0.` clr <$0024,X * 0138 6F 88 24 o.$ leax >U00B8,U * 013B 30 C9 00 B8 0I.8 clra * 013F 4F O @@ -217,7 +217,7 @@ puls B * 02B9 35 04 5. os9 F$Exit * 02BB 10 3F 06 .?. L02BE leax >U00B8,U * 02BE 30 C9 00 B8 0I.8 - leax <$FFE0,X * 02C2 30 88 E0 0.` + leax -$20,X * 02C2 30 88 E0 0.` lda #1 * 02C5 86 01 .. sta <$0024,X * 02C7 A7 88 24 '.$ leax >U00B8,U * 02CA 30 C9 00 B8 0I.8
--- a/3rdparty/packages/os9l2bbs/cmds/Dloadxc.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/Dloadxc.asm Sat Jan 11 14:10:31 2014 +0100 @@ -69,7 +69,7 @@ clra * 0135 4F O clrb * 0136 5F _ os9 I$GetStt * 0137 10 3F 8D .?. - leax <$FFE0,X * 013A 30 88 E0 0.` + leax -$20,X * 013A 30 88 E0 0.` clr <$0024,X * 013D 6F 88 24 o.$ leax >U00BC,U * 0140 30 C9 00 BC 0I.< clra * 0144 4F O @@ -263,7 +263,7 @@ puls B * 0321 35 04 5. os9 F$Exit * 0323 10 3F 06 .?. L0326 leax >U00BC,U * 0326 30 C9 00 BC 0I.< - leax <$FFE0,X * 032A 30 88 E0 0.` + leax -$20,X * 032A 30 88 E0 0.` lda #1 * 032D 86 01 .. sta <$0024,X * 032F A7 88 24 '.$ leax >U00BC,U * 0332 30 C9 00 BC 0I.<
--- a/3rdparty/packages/os9l2bbs/cmds/Dloady.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/Dloady.asm Sat Jan 11 14:10:31 2014 +0100 @@ -68,7 +68,7 @@ clra * 0132 4F O clrb * 0133 5F _ os9 I$GetStt * 0134 10 3F 8D .?. - leax <$FFE0,X * 0137 30 88 E0 0.` + leax -$20,X * 0137 30 88 E0 0.` clr <$0024,X * 013A 6F 88 24 o.$ leax >U043D,U * 013D 30 C9 04 3D 0I.= clra * 0141 4F O @@ -268,7 +268,7 @@ puls B * 0332 35 04 5. os9 F$Exit * 0334 10 3F 06 .?. L0337 leax >U043D,U * 0337 30 C9 04 3D 0I.= - leax <$FFE0,X * 033B 30 88 E0 0.` + leax -$20,X * 033B 30 88 E0 0.` lda #1 * 033E 86 01 .. sta <$0024,X * 0340 A7 88 24 '.$ leax >U043D,U * 0343 30 C9 04 3D 0I.=
--- a/3rdparty/packages/os9l2bbs/cmds/Login.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/Login.asm Sat Jan 11 14:10:31 2014 +0100 @@ -533,7 +533,7 @@ clra * 0671 4F O clrb * 0672 5F _ os9 I$GetStt * 0673 10 3F 8D .?. - leax <$FFE0,X * 0676 30 88 E0 0.` + leax -$20,X * 0676 30 88 E0 0.` clr <$0024,X * 0679 6F 88 24 o.$ leax <U0049,U * 067C 30 C8 49 0HI clra * 067F 4F O @@ -544,7 +544,7 @@ clra * 0688 4F O clrb * 0689 5F _ os9 I$GetStt * 068A 10 3F 8D .?. - leax <$FFE0,X * 068D 30 88 E0 0.` + leax -$20,X * 068D 30 88 E0 0.` lda #1 * 0690 86 01 .. sta <$0024,X * 0692 A7 88 24 '.$ leax <U0049,U * 0695 30 C8 49 0HI
--- a/3rdparty/packages/os9l2bbs/cmds/New_user.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/New_user.asm Sat Jan 11 14:10:31 2014 +0100 @@ -1961,7 +1961,7 @@ clra * 11D3 4F O andb #192 * 11D4 C4 C0 D@ bne L1205 * 11D6 26 2D &- - leas <$FFE0,S * 11D8 32 E8 E0 2h` + leas -$20,S * 11D8 32 E8 E0 2h` leax 0,S * 11DB 30 E4 0d pshs X * 11DD 34 10 4. ldd U0008,U * 11DF EC 48 lH
--- a/3rdparty/packages/os9l2bbs/cmds/Quikterm.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/Quikterm.asm Sat Jan 11 14:10:31 2014 +0100 @@ -3079,7 +3079,7 @@ clra * 1CB9 4F O andb #192 * 1CBA C4 C0 D@ bne L1CEB * 1CBC 26 2D &- - leas <$FFE0,S * 1CBE 32 E8 E0 2h` + leas -$20,S * 1CBE 32 E8 E0 2h` leax 0,S * 1CC1 30 E4 0d pshs X * 1CC3 34 10 4. ldd U0008,U * 1CC5 EC 48 lH
--- a/3rdparty/packages/os9l2bbs/cmds/T1mon.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/T1mon.asm Sat Jan 11 14:10:31 2014 +0100 @@ -104,7 +104,7 @@ clra * 01D9 4F O clrb * 01DA 5F _ os9 I$GetStt * 01DB 10 3F 8D .?. - leax <$FFE0,X * 01DE 30 88 E0 0.` + leax -$20,X * 01DE 30 88 E0 0.` lda #1 * 01E1 86 01 .. sta U0005,U * 01E3 A7 45 'E sta <$0035,X * 01E5 A7 88 35 '.5 @@ -128,14 +128,14 @@ beq L0212 * 020E 27 02 '. bra L01F4 * 0210 20 E2 b L0212 leax U0008,U * 0212 30 48 0H - leax <$FFE0,X * 0214 30 88 E0 0.` + leax -$20,X * 0214 30 88 E0 0.` lda #1 * 0217 86 01 .. sta <$0024,X * 0219 A7 88 24 '.$ leax U0008,U * 021C 30 48 0H clra * 021E 4F O clrb * 021F 5F _ os9 I$SetStt * 0220 10 3F 8E .?. - leax <$FFE0,X * 0223 30 88 E0 0.` + leax -$20,X * 0223 30 88 E0 0.` ldb <$0035,X * 0226 E6 88 35 f.5 lda #10 * 0229 86 0A .. mul * 022B 3D =
--- a/3rdparty/packages/os9l2bbs/cmds/Tsmon.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/Tsmon.asm Sat Jan 11 14:10:31 2014 +0100 @@ -129,7 +129,7 @@ clra * 020C 4F O clrb * 020D 5F _ os9 I$GetStt * 020E 10 3F 8D .?. - leax <$FFE0,X * 0211 30 88 E0 0.` + leax -$20,X * 0211 30 88 E0 0.` lda #3 * 0214 86 03 .. sta U0005,U * 0216 A7 45 'E sta <$0035,X * 0218 A7 88 35 '.5 @@ -175,7 +175,7 @@ bsr L0273 * 026F 8D 02 .. bra L0227 * 0271 20 B4 4 L0273 leax U0008,U * 0273 30 48 0H - leax <$FFE0,X * 0275 30 88 E0 0.` + leax -$20,X * 0275 30 88 E0 0.` sta <$0035,X * 0278 A7 88 35 '.5 leax U0008,U * 027B 30 48 0H clra * 027D 4F O @@ -183,14 +183,14 @@ os9 I$SetStt * 027F 10 3F 8E .?. rts * 0282 39 9 L0283 leax U0008,U * 0283 30 48 0H - leax <$FFE0,X * 0285 30 88 E0 0.` + leax -$20,X * 0285 30 88 E0 0.` lda #1 * 0288 86 01 .. sta <$0024,X * 028A A7 88 24 '.$ leax U0008,U * 028D 30 48 0H clra * 028F 4F O clrb * 0290 5F _ os9 I$SetStt * 0291 10 3F 8E .?. - leax <$FFE0,X * 0294 30 88 E0 0.` + leax -$20,X * 0294 30 88 E0 0.` ldb <$0035,X * 0297 E6 88 35 f.5 lda #10 * 029A 86 0A .. mul * 029C 3D =
--- a/3rdparty/packages/os9l2bbs/cmds/Uloadx.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/Uloadx.asm Sat Jan 11 14:10:31 2014 +0100 @@ -91,7 +91,7 @@ os9 I$GetStt * 013C 10 3F 8D .?. lbcs L02BD * 013F 10 25 01 7A .%.z leax >U00CC,U * 0143 30 C9 00 CC 0I.L - leax <$FFE0,X * 0147 30 88 E0 0.` + leax -$20,X * 0147 30 88 E0 0.` clr <$002B,X * 014A 6F 88 2B o.+ clr <$002C,X * 014D 6F 88 2C o., clr <$002E,X * 0150 6F 88 2E o..
--- a/3rdparty/packages/os9l2bbs/cmds/Uloadxc.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/Uloadxc.asm Sat Jan 11 14:10:31 2014 +0100 @@ -98,7 +98,7 @@ os9 I$GetStt * 0141 10 3F 8D .?. lbcs L0320 * 0144 10 25 01 D8 .%.X leax >U00D1,U * 0148 30 C9 00 D1 0I.Q - leax <$FFE0,X * 014C 30 88 E0 0.` + leax -$20,X * 014C 30 88 E0 0.` clr <$002B,X * 014F 6F 88 2B o.+ clr <$002C,X * 0152 6F 88 2C o., clr <$002E,X * 0155 6F 88 2E o..
--- a/3rdparty/packages/os9l2bbs/cmds/Uloady.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/Uloady.asm Sat Jan 11 14:10:31 2014 +0100 @@ -100,7 +100,7 @@ os9 I$GetStt * 0142 10 3F 8D .?. lbcs L03ED * 0145 10 25 02 A4 .%.$ leax >U0456,U * 0149 30 C9 04 56 0I.V - leax <$FFE0,X * 014D 30 88 E0 0.` + leax -$20,X * 014D 30 88 E0 0.` clr <$002B,X * 0150 6F 88 2B o.+ clr <$002C,X * 0153 6F 88 2C o., clr <$002E,X * 0156 6F 88 2E o..
--- a/3rdparty/packages/os9l2bbs/cmds/suser.asm Mon Dec 02 19:40:07 2013 +0100 +++ b/3rdparty/packages/os9l2bbs/cmds/suser.asm Sat Jan 11 14:10:31 2014 +0100 @@ -1262,7 +1262,7 @@ clra * 09F5 4F O andb #192 * 09F6 C4 C0 D@ bne L0A27 * 09F8 26 2D &- - leas <$FFE0,S * 09FA 32 E8 E0 2h` + leas -$20,S * 09FA 32 E8 E0 2h` leax 0,S * 09FD 30 E4 0d pshs X * 09FF 34 10 4. ldd U0008,U * 0A01 EC 48 lH