Removed offset from assembly export size

This commit is contained in:
neauoire 2021-03-28 12:20:54 -07:00
parent e02a0e440f
commit 296d4c5070
3 changed files with 7 additions and 9 deletions

View File

@ -29,12 +29,13 @@ Read more in the [Uxambly Guide](https://wiki.xxiivv.com/site/uxambly.html).
( devices ) ( devices )
|0100 ;Console { pad 8 char 1 byte 1 short 2 } |0100 ;Console { pad 8 char 1 byte 1 short 2 }
|01F0 .RESET .FRAME .ERROR ( vectors ) |0200 ,RESET JMP2
|01F8 [ 13fd 1ef3 1bf2 ] ( palette ) |0204 ,ERROR JMP2
|0208 ,FRAME JMP2
( program ) ( program )
|0200 @RESET @RESET
,text1 ,print-label JSR2 ,text1 ,print-label JSR2
,text2 ,print-label JSR2 ,text2 ,print-label JSR2

View File

@ -33,9 +33,6 @@ BRK
,cursor_icn =Sprite.addr ,cursor_icn =Sprite.addr
~cursor.blink MOD2 #00 EQU =cursor.blink ~cursor.blink MOD2 #00 EQU =cursor.blink
~Keys #00 EQU ^$end JNZ ~Keys #00 EQU ^$end JNZ
( enter key ) ( enter key )
@ -93,6 +90,6 @@ BRK
0008 0808 0808 0800 0030 1008 0810 3000 0000 0032 4c00 0000 3c42 99a1 a199 423c 0008 0808 0808 0800 0030 1008 0810 3000 0000 0032 4c00 0000 3c42 99a1 a199 423c
] ]
;text { body 512 }
@ERROR BRK @ERROR BRK
;text { body 2 }

View File

@ -439,7 +439,7 @@ void
cleanup(char *filename) cleanup(char *filename)
{ {
int i; int i;
printf("Assembled %s(%0.2fkb), %d labels, %d macros.\n\n", filename, p.ptr / 1000.0, p.llen, p.mlen); printf("Assembled %s(%0.2fkb), %d labels, %d macros.\n\n", filename, (p.ptr - OFFSET) / 1000.0, p.llen, p.mlen);
for(i = 0; i < p.llen; ++i) for(i = 0; i < p.llen; ++i)
if(!p.labels[i].refs) if(!p.labels[i].refs)
printf("--- Unused label: %s\n", p.labels[i].name); printf("--- Unused label: %s\n", p.labels[i].name);