Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: address_wrap.asm1 0000 ; default without device will go outside into 0x10000+ address realm (with warnings)2 0000 DEVICE NONE3 0000 ORG $FFFF4 FFFF 37 ta1 scfaddress_wrap.asm(5): warning: RAM limit exceeded 0x10000 by ORG5 0000 18 FE tb1 jr tb16 0002 18 FE tc1 jr tc1address_wrap.asm(7): warning: value 0x10002 is truncated to 16bit value: 0x00027 0004 CD 02 00 call tc18 00079 0007 ORG $FFFFaddress_wrap.asm(10): warning: RAM limit exceeded 0x10000 by ORG10 FFFF 3E 37 ta2 ld a,'7' ; will reset warning-displayed flag => warnings again11 0001 18 FE tb2 jr tb212 0003 18 FE tc2 jr tc2address_wrap.asm(13): warning: value 0x10003 is truncated to 16bit value: 0x000313 0005 CD 03 00 call tc214 000815 0008 ; default with device will produce error (and leak into 0x10000+ address realm)16 0008 DEVICE ZXSPECTRUM4817 0008 ORG $FFFF18 FFFF 37 ta3 scfaddress_wrap.asm(19): error: Write outside of device memory at: 6553619 0000 18 FE tb3 jr tb3 ; machine code is written only to OUTPUT, not to device-memory (SAVEBIN)20 0002 18 FE tc3 jr tc3address_wrap.asm(21): warning: value 0x10002 is truncated to 16bit value: 0x000221 0004 CD 02 00 call tc322 000723 0007 ORG $FFFFaddress_wrap.asm(24): error: Write outside of device memory at: 6553624 FFFF 3E 38 ta4 ld a,'8'25 0001 18 FE tb4 jr tb426 0003 18 FE tc4 jr tc4address_wrap.asm(27): warning: value 0x10003 is truncated to 16bit value: 0x000327 0005 CD 03 00 call tc428 000829 0008 ; produce the same machine code at $8000 (recommended way how to FFFF->0000 wrap)30 0008 DEVICE NONE31 0008 ORG $800032 8000 binStart533 8000 DISP $FFFF34 FFFF 37 ta5 scfaddress_wrap.asm(35): warning: RAM limit exceeded 0x10000 by DISP35 0000 18 FE tb5 jr tb5 ; the "tb5" label will equal 0x10000 since v1.15.0 (was 0x0000 before)36 0002 18 FE tc5 jr tc537 0004 CD 02 00 call tc538 000739 0007 ORG $FFFF ; displacedorg-ok ; while already inside DISP<->ENT block, use ORG for further changesaddress_wrap.asm(40): warning: RAM limit exceeded 0x10000 by DISP40 FFFF 3E 38 ta6 ld a,'8'41 0001 18 FE tb6 jr tb642 0003 18 FE tc6 jr tc643 0005 CD 03 00 call tc644 0008 ENT45 8011 binEnd646 801147 8011 ; machine code at $8000 and also into device memory (SAVEBIN/SAVETAP ready)48 8011 DEVICE ZXSPECTRUM4849 8011 binStart750 8011 DISP $FFFF51 FFFF 37 ta7 scfaddress_wrap.asm(52): warning: RAM limit exceeded 0x10000 by DISP52 0000 18 FE tb7 jr tb753 0002 18 FE tc7 jr tc754 0004 CD 02 00 call tc755 000756 0007 ORG $FFFF ; displacedorg-okaddress_wrap.asm(57): warning: RAM limit exceeded 0x10000 by DISP57 FFFF 3E 38 ta8 ld a,'8'58 0001 18 FE tb8 jr tb859 0003 18 FE tc8 jr tc860 0005 CD 03 00 call tc861 0008 ENT62 8022 binEnd863 8022# file closed: address_wrap.asmValue Label------ - -----------------------------------------------------------0x8011 X binEnd60x8022 X binEnd80x8000 X binStart50x8011 X binStart70xFFFF X ta10xFFFF X ta20xFFFF X ta30xFFFF X ta40xFFFF X ta50xFFFF X ta60xFFFF X ta70xFFFF X ta80x10000 tb10x10001 tb20x10000 tb30x10001 tb40x10000 tb50x0001 tb60x10000 tb70x0001 tb80x10002 tc10x10003 tc20x10002 tc30x10003 tc40x0002 tc50x0003 tc60x0002 tc70x0003 tc8