2019-10-28 00:28:28 +00:00
|
|
|
;license:MIT
|
2024-05-27 17:32:07 +00:00
|
|
|
;(c) 2019-2024 by 4am
|
2019-10-28 00:28:28 +00:00
|
|
|
;
|
2024-05-26 17:41:21 +00:00
|
|
|
|
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
|
2024-05-31 06:22:38 +00:00
|
|
|
; 6000..61FF - module-specific code ($200 max)
|
|
|
|
; 6200.. - shared FX code (loaded once by module-specific code)
|
|
|
|
; 80FE..BD00 - Coordinates2Bit (8100 but dither variants clobber Coordinates2Bit-2)
|
2024-05-29 01:03:09 +00:00
|
|
|
; BD01..BDA7
|
2024-05-27 17:32:07 +00:00
|
|
|
; BDA8..BDFF - dithermasks
|
|
|
|
; BE00..BEFF - copymasks2bit
|
|
|
|
; BF00..BFFF - ProRWTS glue
|
|
|
|
;
|
2019-10-28 00:28:28 +00:00
|
|
|
|
|
|
|
!source "src/fx/macros.a"
|
|
|
|
|
2024-05-31 06:22:38 +00:00
|
|
|
!macro FX_INITONCE_2BIT .FXCodeFile, .CoordinatesFile, .Start {
|
2020-11-13 04:26:15 +00:00
|
|
|
InitOnce
|
|
|
|
bit .Start
|
|
|
|
lda #$4C
|
|
|
|
sta InitOnce
|
2024-05-25 17:07:22 +00:00
|
|
|
|
2024-05-31 06:22:38 +00:00
|
|
|
+LDADDR .FXCodeFile
|
|
|
|
ldx #>FXCode
|
|
|
|
jsr iLoadFXCODE
|
|
|
|
|
2024-05-25 17:07:22 +00:00
|
|
|
+LDADDR .CoordinatesFile
|
|
|
|
ldx #>Coordinates2Bit
|
|
|
|
jsr iLoadFXDATA
|
|
|
|
|
2020-11-13 04:26:15 +00:00
|
|
|
lda #$00
|
2022-08-25 02:30:49 +00:00
|
|
|
sta EndCoordinates2Bit
|
2020-11-13 04:26:15 +00:00
|
|
|
}
|