-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
848d7d2
commit dc265f6
Showing
4 changed files
with
64 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,31 @@ | ||
@org 0x0000 | ||
@define BUF_START 0xF800 | ||
@define BUF_START 0xF000 | ||
@define COLOR_START (BUF_START + 256*2) ; Start offset by 256 characters to not overwrite any of the char display | ||
|
||
_start: | ||
mv A, 0 | ||
.loop: | ||
mv B, 0x0F | ||
.char_loop: | ||
lda [BUF_START] | ||
add16 H, L, 0x00, A | ||
add16 H, L, 0x00, A ; double offset to account for modifier bytes | ||
st A | ||
inc H, L ; increment to shift into modifier byte | ||
st B | ||
inc A | ||
jnz A, [.loop] | ||
jnz A, [.char_loop] | ||
|
||
mv A, 0 | ||
mv B, 0x01 ; smiley face | ||
.color_loop: | ||
lda [COLOR_START] | ||
add16 H, L, 0x00, A | ||
add16 H, L, 0x00, A ; double offset to account for modifier bytes | ||
st B | ||
inc H, L ; increment to shift into modifier byte | ||
st A | ||
|
||
inc A | ||
jnz A, [.color_loop] | ||
halt |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters