; ; Groepaz/Hitmen, 11.10.2015 ; ; Low level init code for soft80 screen output/console input ; .constructor soft80_init, 8 .destructor soft80_shutdown .import soft80_kclrscr, soft80_charset .export soft80_internal_textcolor, soft80_internal_bgcolor .export soft80_internal_cursorxlsb .importzp ptr1, ptr2, ptr3 .include "c64.inc" .include "soft80.inc" soft80_init: lda #$3b sta VIC_CTRL1 lda #$00 sta CIA2_PRA lda #$68 sta VIC_VIDEO_ADR lda #$c8 sta VIC_CTRL2 ; copy charset to RAM under I/O ; FIXME: move charset and this constructor into init segment sei lda $01 pha lda #$34 sta $01 lda #>soft80_charset sta ptr1+1 lda #soft80_lo_charset sta ptr2+1 lda #soft80_hi_charset sta ptr3+1 lda #