Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: cspectmap.asm1 0000 DEVICE NONE ; set "none" explicitly, to avoid "global device" featurecspectmap.asm(2): error: CSPECTMAP only allowed in real device emulation mode (See DEVICE)2 0000 CSPECTMAP ; error about non-device mode3 0000 DEVICE ZXSPECTRUMNEXT3 0000 SLOT 64 0000 CSPECTMAP "cspectmap.sym" ; default-name variant is tested only manually5 0000 ; CSPECTMAP ; default-name is source name with ".map" appended (tested manually)6 0000 LABELSLIST "cspectmap.lbl"7 00008 0000 ; create test labels in various areas of memory (and by various means)9 000010 0000 EquLabel EQU $123411 000012 0000 DeflLabel DEFL $12+113 000014 0000 STRUCT Struct15 0000 ~ Field1 BLOCK 516 0000 ~ Field2 DW $567817 0000 ENDS18 000019 0000 ORG $C000, $0020 C000 27 Page00: daa21 C001 .local:22 C001 ORG $C001, $0123 C001 37 Page01: scf24 C002 .local:25 C002 ORG $C00A, $0A26 C00A 3F Page0A: ccf27 C00B 07 .local: rlca28 C00C .codeEqu EQU $+1 ; is like simple EQU => "wrong" physical address29 C00C30 C00C .local.local: ; TODO this will be incorrectly marked as local at second dot31 C00C ; but it will stay so, because A) not simple to fix B) works often better for UX32 C00C33 C00C ORG $DFFE, $0B ; also raise difficulty by adding extra dots in labels34 DFFE 2F Page0B.A: cpl35 DFFF .local.b:36 DFFF ORG $C0DF, $DF37 C0DF 1F PageDF.A.B: rra38 C0E0 .local.c..d:39 C0E040 C0E0 ORG $C030, $3041 C030 MODULE Module42 C030 17 Page30: rla43 C031 .local:44 C031 ENDMODULE45 C03146 C031 ORG $C031, $3147 C031 MODULE Module_two_48 C031 0F Page31..A.: rrca49 C032 .local..c.:50 C032 ENDMODULE51 C03252 C032 ; exporting of struct-emit labels should contain the correct physical address too53 C032 00 00 00 00 s1 Struct { 0x1234 }53 C036 00 34 1254 C039# file closed: cspectmap.asmValue Label------ - -----------------------------------------------------------0x0013 X DeflLabel0x1234 X EquLabel0xC030 X Module.Page300xC031 X Module.Page30.local0xC031 X Module_two_.Page31..A.0xC032 X Module_two_.Page31..A..local..c.0xC000 X Page000xC001 X Page00.local0xC001 X Page010xC002 X Page01.local0xC00A X Page0A0xC00D X Page0A.codeEqu0xC00B X Page0A.local0xC00C X Page0A.local.local0xDFFE X Page0B.A0xDFFF X Page0B.A.local.b0xC0DF X PageDF.A.B0xC0E0 X PageDF.A.B.local.c..d0xC032 X s10xC032 X s1.Field10xC037 X s1.Field20x0007 X Struct0x0000 X Struct.Field10x0005 X Struct.Field2