Skip to content

Commit 7a355a3

Browse files
Parameter name changed
1 parent d834eb6 commit 7a355a3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

vic2.asm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@
133133
.assert "getTextOffset(39,24) gives 999", getTextOffset(39, 24), 999
134134

135135
/*
136-
* Combines video and charset slots for memory control register.
136+
* Combines screen and charset slots for memory control register.
137137
*
138138
* Params:
139-
* video: location of video ram: 0..15
139+
* screenMem: location of screen memory: 0..15
140140
* charSet: location of charset definition: 0..7
141141
*/
142-
.function @getTextMemory(video, charSet) {
143-
.return charSet<<1 | video<<4
142+
.function @getTextMemory(screenMem, charSet) {
143+
.return charSet<<1 | screenMem<<4
144144
}
145145
.assert "getTextMemory(0, 0) returns $00", getTextMemory(0, 0), %00000000
146146
.assert "getTextMemory(15,7) returns $FE", getTextMemory(15, 7), %11111110

0 commit comments

Comments
 (0)