Init sei ldx #0 .1 lda 0,x sta ZPbuf,x inx bne .1 lda #$2f sta 0 lda #$36 sta 1 txa .2 sta.xw 2,x sta $0200,x sta $0300,x inx bne .2 jsr $fda3 ; init I/O lda #$ff ; keyboard flag sta $91 ldy #$a0 jsr $fd8c ; top of memory, start of basic, screen position jsr $fd15 ; $0314..$0333 jsr $ff5b ; rest of kernal init