Trouble getting started in assembly
Posted: Sat Jun 29, 2024 7:28 pm
Hi have some knowledge of 6502 assembly from working on the C64 and the NES.
I have a little bit trouble getting started with the X16.
As what I can read the following code should write the character A to the screen and change the color.
However nothing happens. I can get the kernal routine to write the character on the screen, but I would like to do directly. I followed many tutorials, but must of the times nothing happens. I tested both in the emulator and on the real hardware. Any pointers to what am I doing wrong?
I have a little bit trouble getting started with the X16.
As what I can read the following code should write the character A to the screen and change the color.
Code: Select all
.org $080d
.segment "STARTUP"
.segment "INIT"
.segment "ONCE"
.segment "CODE"
lda #$00
sta $9F25
lda #$20
sta $9F22
lda #$00
sta $9F20
lda #$00
sta $9F21
lda #$41
sta $9F23
lda #$12
sta $9F23
rts