- ; FIXME: perhaps just include the respective tables directly?
-soft80_plotinit:
- ; create screen-rows base tables (bitmap)
- lda #<soft80_bitmap
- sta SCREEN_PTR
- lda #>soft80_bitmap
- sta SCREEN_PTR+1
-
- ldx #$00
-l1:
- lda SCREEN_PTR
- sta _bitmaplo,x
- clc
- adc #<(40*8)
- sta SCREEN_PTR
- lda SCREEN_PTR+1
- sta _bitmaphi,x
- adc #>(40*8)
- sta SCREEN_PTR+1
- inx
- cpx #25
- bne l1
-
- ; create screen-rows base tables (colorram)
-
- lda #<soft80_vram
- sta CRAM_PTR
- lda #>soft80_vram
- sta CRAM_PTR+1
-
- ldx #$00
-l1b:
- lda CRAM_PTR
- sta _vramlo,x
- clc
- adc #<(40)
- sta CRAM_PTR
- lda CRAM_PTR+1
- sta _vramhi,x
- adc #>(40)
- sta CRAM_PTR+1
- inx
- cpx #25
- bne l1b
-
- rts
-