Skip to content

Commit ecd8718

Browse files
committed
Rename on functions
1 parent d9de430 commit ecd8718

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

vic2.asm

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,27 @@
293293
lda #$FF; sta RASTER; lda CONTROL_1; ora #CONTROL_1_RASTER8; sta CONTROL_1
294294
}
295295

296-
.macro IRQ_ENTER() {
296+
/*
297+
* Call it when entering raster interrupt.
298+
*
299+
* MOD: A
300+
*/
301+
.macro irqEnter() {
297302
pha
298303
tya
299304
pha
300305
txa
301306
pha
302307
}
303308

304-
.macro IRQ_EXIT(intVector, rasterLine, memory) {
309+
/*
310+
* Call it at the end of raster interrupt.
311+
*
312+
* intVector - address of next interrupt handling routine
313+
* rasterLine - at which raster line should we fire next interrupt
314+
* memory - if true, rasterLine is taken from memory address, if false - absolute addressing is used
315+
*/
316+
.macro irqExit(intVector, rasterLine, memory) {
305317
ldx #>intVector
306318
ldy #<intVector
307319
stx $FFFF

0 commit comments

Comments
 (0)