Character Printing demo screen
Here is a photo of my screen running the character printing demo. The Atari is feeding characters into the character print API function. The ARM does the rendering to queues, and then serves the queues in the kernel itself.
Here is what some of the code looks like:
ldy #0 ldx #0 .keep_printing lda CHIMERA_LINE,X jsr print_character inx cpx #12 bne .keep_printing ldy #3 ldx #0 .keep_printing2 lda Character,X jsr print_character inx cpx #9 bne .keep_printing2 ldy #4 ldx #0 .keep_printing3 lda Printing,X jsr print_character inx cpx #11 bne .keep_printing3 ldy #5 ldx #0 .keep_printingDash lda Dash,X jsr print_character inx cpx #12 bne .keep_printingDash ldy #6 ldx #0 .keep_printing4 lda Model,X jsr print_character inx cpx #7 bne .keep_printing4 ldy #7 ldx #0 .keep_printing5 lda Arm,X jsr print_character inx cpx #10 bne .keep_printing5 ldy #8 ldx #0 .keep_printing6 lda Speed,X jsr print_character inx cpx #12 bne .keep_printing6 ldy #9 ldx #0 .TopChip lda TopChip,X jsr print_character inx cpx #11 bne .TopChip lda #0 sta temp2 .do_again lda #9 adc temp2 tay ldx #0 .SideChip lda SideChip,X jsr print_character inx cpx #11 bne .SideChip inc temp2 ldx temp2 cpx #15 bne .do_again ldy #24 ldx #0 .BottomChip lda BottomChip,X jsr print_character inx cpx #11 bne .BottomChip print_character STA temp; save the character ;ID LDA #0 STA CH_COMMAND LDA #1 STA CH_COMMAND ;ARGUMENTS STX CH_COMMAND; x coordinate STY CH_COMMAND; y coordinate LDA #0 STA CH_COMMAND LDA temp;get the character back STA CH_COMMAND .WAIT_STATUS LDA CH_STATUS CMP #CH_FUNC_DONE BNE .WAIT_STATUS RTS .................. CHIMERA_LINE byte "Chimera Demo" Character byte "Character" Printing byte "printing..." Model byte "LPC2368" Arm byte "ARM7TDMI-S" Speed byte "72Mhz 32-bit" Dash byte $12,$12,$12,$12,$12,$12,$12,$12,$12,$12,$12,$12 TopChip byte " ",$11,$18,$18,$18,$18,$18,$18,$18,$18,$05 SideChip byte " ",$04,160,160,160,160,160,160,160,160,$01 BottomChip byte " ",$1A,$17,$17,$17,$17,$17,$17,$17,$17,$03
0 Comments
Recommended Comments
There are no comments to display.