0 Members and 2 Guests are viewing this topic.
This relates to the underlying z80 machine code (or ASM, if you prefer) that Axe generates.
p_Add510: .db 4 inc h inc h dec hl dec hlp_Add514: .db 4 inc h inc h inc hl inc hlp_Add767: .db 4 inc h inc h inc h dec hlp_Add769: .db 4 inc h inc h inc h inc hlp_Add1024: .db 4 inc h inc h inc h inc hp_Sub510: .db 4 dec h dec h inc hl inc hlp_Sub514: .db 4 dec h dec h dec hl dec hlp_Sub767: .db 4 dec h dec h dec h inc hlp_Sub769: .db 4 dec h dec h dec h dec hlp_Sub1024: .db 4 dec h dec h dec h dec h
p_EQN256: .db 9 inc h ld a,l or h jr z,$+5 ld hl,255 inc lp_EQN2: .db 10 inc hl inc hl ld a,l or h jr z,$+5 ld hl,255 inc lp_EQN1: .db 9 inc hl ld a,l or h jr z,$+5 ld hl,255 inc lp_EQ0: .db 8 ld a,l or h jr z,$+5 ld hl,255 inc lp_EQ256: .db 9 dec h ld a,l or h jr z,$+5 ld hl,255 inc l
p_EQN256: .db 8 inc h ld a,l or h add 255 sbc hl,hl inc hlp_EQN2: .db 8 inc l ld a,l and h sub 255 sbc hl,hl inc hlp_EQN1: .db 7 ld a,l and h sub 255 sbc hl,hl inc hlp_EQ0: .db 7 ld a,l or h add 255 sbc hl,hl inc hlp_EQ256: .db 8 dec h ld a,l or h add 255 sbc hl,hl inc hl
p_NEN3: .db 10 inc hl inc hl inc hl ld a,l or h jr z,$+5 ld hl,1p_NEN2: .db 9 inc hl inc hl ld a,l or h jr z,$+5 ld hl,1p_NEN1: .db 8 inc hl ld a,l or h jr z,$+5 ld hl,1
p_NEN3: .db 9 inc l inc l ld a,l and h add a,1 sbc hl,hl inc hlp_NEN2: .db 8 inc l ld a,l and h add a,1 sbc hl,hl inc hlp_NEN1: .db 7 ld a,l and h add a,1 sbc hl,hl inc hl
Concerning optimizations:I used an Assembly Disassembler to disassemble my game uPong and the code was 1531 lines! It was huge. Hopefully, thanks to Runner's and other members' optimizations, Axe programs can get smaller and smaller