Rev 126 | Rev 539 | Go to most recent revision | 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: Bytes lost (0x10002)7 0004 CD 02 00 call tc18 00079 0007 ORG $FFFF10 FFFF 3E 37 ta2 ld a,'7' ; will reset warning-displayed flag => warnings againaddress_wrap.asm(11): warning: RAM limit exceeded 0x10001 by ORG11 0001 18 FE tb2 jr tb212 0003 18 FE tc2 jr tc2address_wrap.asm(13): warning: Bytes lost (0x10003)13 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: Bytes lost (0x10002)21 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: Bytes lost (0x10003)27 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 tb536 0002 18 FE tc5 jr tc537 0004 CD 02 00 call tc538 000739 0007 ORG $FFFF ; while already inside DISP<->ENT block, use ORG for further changes40 FFFF 3E 38 ta6 ld a,'8'address_wrap.asm(41): warning: RAM limit exceeded 0x10001 by DISP41 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 $FFFF57 FFFF 3E 38 ta8 ld a,'8'address_wrap.asm(58): warning: RAM limit exceeded 0x10001 by DISP58 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------ - -----------------------------------------------------------0xFFFF X ta10x10000 tb10x10002 tc10xFFFF X ta20x10001 tb20x10003 tc20xFFFF X ta30x10000 tb30x10002 tc30xFFFF X ta40x10001 tb40x10003 tc40x8000 X binStart50xFFFF X ta50x0000 tb50x0002 tc50xFFFF X ta60x0001 tb60x0003 tc60x8011 X binEnd60x8011 X binStart70xFFFF X ta70x0000 tb70x0002 tc70xFFFF X ta80x0001 tb80x0003 tc80x8022 X binEnd8