4cade/src/fx/fx.shr.soft.iris.in.a

37 lines
858 B
Plaintext
Raw Permalink Normal View History

2021-12-18 02:27:18 +00:00
;license:MIT
;(c) 2021 by 4am
;
!cpu 6502
!to "build/FX.INDEXED/SHR.SOFTIRIS.IN",plain
*=$A000
mirror_rows = $106 ; $C8 bytes
shrlo = $200 ; $C8 bytes
shrhi = $300 ; $C8 bytes
2021-12-18 02:27:18 +00:00
coords = $9F00 ; $1F41 bytes
2024-05-27 17:32:07 +00:00
shr_mirror_cols = $BE60 ; $A0 bytes but clobbers $27 previous bytes during construction
2021-12-18 02:27:18 +00:00
!source "src/fx/macros.a"
2024-05-27 17:32:07 +00:00
+SHR_STAGE_1 shrlo, shrhi, mirror_rows, shr_mirror_cols
2021-12-18 02:27:18 +00:00
jmp stage2
!pseudopc *-$300 {
stage2
+LOAD_SHR_COORDINATES_AT coords, CoordinatesFile
2021-12-18 02:27:18 +00:00
+SHR_REVERSE coords
+SHR_STAGE_2 startzp, endzp
rts
CoordinatesFile
+PSTRING "SHR.SFIRIS.DATA"
2021-12-18 02:27:18 +00:00
startzp
!pseudopc 0 {
stage3
2024-05-27 17:32:07 +00:00
+SHR_STAGE_3 coords, shrlo, shrhi, mirror_rows, shr_mirror_cols
2021-12-18 02:27:18 +00:00
}
endzp
!if (* - stage2 > $200) { !serious "Stage2 code is too large" }
2021-12-18 02:27:18 +00:00
}