wip tables segment to be

This commit is contained in:
Brooke Vibber 2024-12-29 20:37:58 -08:00
parent 3ab5006aa3
commit 0c63430dd9
3 changed files with 9 additions and 8 deletions

View file

@ -2,8 +2,8 @@
all : mandel.xex
mandel.xex : mandel.o tables.o
ld65 -C ./atari-asm-xex.cfg -o $@ $+
mandel.xex : mandel.o tables.o atari-asm-xex.cfg
ld65 -C ./atari-asm-xex.cfg -o $@ mandel.o tables.o
%.o : %.s
ca65 -o $@ $<

View file

@ -6,7 +6,8 @@ SYMBOLS {
}
MEMORY {
ZP: file = "", define = yes, start = $0082, size = $007E;
MAIN: file = %O, define = yes, start = %S, size = $BC20 - %S;
#MAIN: file = %O, define = yes, start = %S, size = $BC20 - %S;
MAIN: file = %O, define = yes, start = %S, size = $4000 - %S;
}
FILES {
%O: format = atari;

View file

@ -375,11 +375,11 @@ viewport_oy:
.endmacro
.macro sqr16_round dest, arg, shift
imul16_round dest, arg, arg, shift
;copy16 FR0, arg ; 12 cyc
;jsr sqr16_func ; ? cyc
;shift_round_16 FR2, shift
;copy16 dest, FR2 + 2 ; 12 cyc
;imul16_round dest, arg, arg, shift
copy16 FR0, arg ; 12 cyc
jsr sqr16_func ; ? cyc
shift_round_16 FR2, shift
copy16 dest, FR2 + 2 ; 12 cyc
.endmacro
; clobbers a, x