Hi, i download a artistic hello world code
from internet. I wanna that output be:
Hello World. Pando
6502
Then i modify it..
but result output by Virtuanes emu is:
Hello world. Pando 6502
how can i make the output with writeln?? where logic are
bad here???
i am a novice, it's my first edit code since i read lot of
documents
... I know that all this letters are for background (nametable)...
it's the code for NESASM:
[edit by Quietust - changed color tag to CODE tag, since the color was completely unreadable in SubSilver]
from internet. I wanna that output be:
Hello World. Pando
6502
Then i modify it..
but result output by Virtuanes emu is:
Hello world. Pando 6502
how can i make the output with writeln?? where logic are
bad here???
i am a novice, it's my first edit code since i read lot of
documents
... I know that all this letters are for background (nametable)...
it's the code for NESASM:
Code:
;INES header setup
.inesprg 1 ; 16k prg bank
.ineschr 1 ; 8k chr bank
.inesmir 0 ; Horizontal
.inesmap 0 ; Use mapper #0
.bank 0
.org $C000
RESET
cld
sei
.WaitV
lda $2002
bpl .WaitV
ldx #$00
stx $2000
stx $2001 ;screen off
lda #$3F
sta $2006
stx $2006 ;PPU $3F00 - Palette
lda #$0F
sta $2007
lda #$00
sta $2007
lda #$10
sta $2007
lda #$30
sta $2007 ;Palette 0F,00,10,30
lda #$21
sta $2006
lda #$C9
sta $2006 ;cursor address
ldy #$00
ldx #17 ;size of .data
.readdata
lda .data,y
sta $2007
iny
dex
bne .readdata
lda #%00001110
sta $2001
ldx #$49
stx $2005
ldx #$70
stx $2005
ldy #$00 ; INITIALIZE FOR readdata2
ldx #4 ; INITIALIZE FOR readdata2
lda $2007
lda $2007 ; clear 2007?
.readdata2
lda .data2,y
sta $2007
iny
dex
bne .readdata2
ldx #$49
stx $2005
ldx #$68
stx $2005
.loop
jmp .loop
.data
db "Hello World. Pando"
.data2
db "6502"
NMI
IRQ
rti
.bank 1
.org $E000
.org $FFFA
.dw NMI
.dw RESET
.dw IRQ
.bank 2
;character data
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 etc....
.inesprg 1 ; 16k prg bank
.ineschr 1 ; 8k chr bank
.inesmir 0 ; Horizontal
.inesmap 0 ; Use mapper #0
.bank 0
.org $C000
RESET
cld
sei
.WaitV
lda $2002
bpl .WaitV
ldx #$00
stx $2000
stx $2001 ;screen off
lda #$3F
sta $2006
stx $2006 ;PPU $3F00 - Palette
lda #$0F
sta $2007
lda #$00
sta $2007
lda #$10
sta $2007
lda #$30
sta $2007 ;Palette 0F,00,10,30
lda #$21
sta $2006
lda #$C9
sta $2006 ;cursor address
ldy #$00
ldx #17 ;size of .data
.readdata
lda .data,y
sta $2007
iny
dex
bne .readdata
lda #%00001110
sta $2001
ldx #$49
stx $2005
ldx #$70
stx $2005
ldy #$00 ; INITIALIZE FOR readdata2
ldx #4 ; INITIALIZE FOR readdata2
lda $2007
lda $2007 ; clear 2007?
.readdata2
lda .data2,y
sta $2007
iny
dex
bne .readdata2
ldx #$49
stx $2005
ldx #$68
stx $2005
.loop
jmp .loop
.data
db "Hello World. Pando"
.data2
db "6502"
NMI
IRQ
rti
.bank 1
.org $E000
.org $FFFA
.dw NMI
.dw RESET
.dw IRQ
.bank 2
;character data
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00 etc....
[edit by Quietust - changed color tag to CODE tag, since the color was completely unreadable in SubSilver]