Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Example of loading a Charpad Map Fullscreen 1000 bytes
- ; Some code adapted from c64brain's example.
- ;Include custom characters file
- ;* = $3800
- ;chars
- ;!bin "./chars/blade_runner.bin",512
- ;Boot loader
- !source "./libs/loader.asm"
- +start_at $8000
- ; lda #%00011110 ; Point toward custom characters
- ; sta $d018
- lda #$00 ; Change Screen/Border Colors
- sta $d020
- sta $d021
- jsr drawmap
- rts
- drawmap
- lda #$00
- sta $fb
- lda #$04
- sta $fc ;0+4*256 = 1024
- ldx #$00
- lda screenlo,x
- sta $fd
- lda screenhi,x
- sta $fe
- ldx #$03
- sethi
- ldy #$00
- setlow
- lda ($fd),y ;map
- sta ($fb),y ;1024,x
- iny
- cpy #$ff
- bne setlow
- inc $fc
- inc $fe
- dex
- bne sethi
- rts
- screenlo !byte <map
- screenhi !byte >map
- map
- !bin "map.raw"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement