4cade/src/fx/fx.hgr.precomputed.3bit.a

45 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

;license:MIT
2024-05-27 17:32:07 +00:00
;(c) 2019-2024 by 4am
;
2024-05-27 17:32:07 +00:00
;------------------------------------------------------------------------------
; YE OLDE GRAND UNIFIED MEMORY MAP
;
; 0201..02C0 - hgrlo
; 02C1..02E8 - mirror_cols
; 02E9..0300
; 0301..03C0 - hgrhi
; 03C1..03EE
; 6000..61FF - module-specific code ($200 max)
; 6200.. - shared FX code (loaded once by module-specific code)
2024-05-27 17:32:07 +00:00
; 6880..6C7F - dither123_lo, hgrlo3abc, hgrhi3ab
; 6C80..6CFD
; 6CFE..BD00 - Coordinates3Bit (6D00 but dither variants clobber Coordinates3Bit-2)
2024-05-27 17:32:07 +00:00
; BD01..BD80 - hgrhi3c
2024-05-29 01:03:09 +00:00
; BD81..BDA7
2024-05-27 17:32:07 +00:00
; BDA8..BDFF - dithermasks
; BE00..BEE0 - copymasks3bit
; BEF8..BEFF - extra_cols
; BF00..BFFF - ProRWTS glue
;
2024-05-27 17:32:07 +00:00
!source "src/fx/macros.a"
!macro FX_INITONCE_3BIT .FXCodeFile, .CoordinatesFile, .Start {
InitOnce
bit .Start
lda #$4C
sta InitOnce
+LDADDR .FXCodeFile
ldx #>FXCode
jsr iLoadFXCODE
+LDADDR .CoordinatesFile
ldx #>Coordinates3Bit
jsr iLoadFXDATA
2020-11-16 20:21:28 +00:00
sec
ror EndCoordinates3Bit
}