-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathastro_stream_processor_code.asm
More file actions
27 lines (21 loc) · 1.02 KB
/
astro_stream_processor_code.asm
File metadata and controls
27 lines (21 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//////////////////////////////////////////////////////////////////////////////
// astro_stream_processor_code.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
// subroutine based on expansion of the nv_stream_proc_sr macro
// to process streams for astroblast.
#importonce
#import "../nv_c64_util/nv_c64_util_macs_and_data.asm"
#import "astro_vars_data.asm"
//#import "../nv_c64_util/nv_stream_processor_macs.asm"
#import "astro_stream_processor_macs.asm"
//////////////////////////////////////////////////////////////////////////////
// Accum: will change, Input: should hold the byte that will be stored
// X Reg: will change, Input: LSB of stream data's addr.
// Y Reg: will change, Input: MSB of Stream data's addr
AstroStreamProcessor:
nv_stream_proc_sr(nv_sp_temp_word, nv_sp_save_block, background_color)
nv_sp_temp_word: .word $0000
nv_sp_save_block: .word $0000
.word $0000