home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
programs
/
emulaton
/
asm6503
/
examples
/
c64chars
< prev
next >
Wrap
Text File
|
1998-08-25
|
899b
|
28 lines
;Alain BROBECKER (aka baah/Arm's Tech), 07sep1997
;A small C64 proggy, drawing all chars on screen with color
#name c64charsX
#type &064
#list
#base &801-2
#set screen = &400 ; Textmode's vram adress
#set colram = &d800
;---- C64 specific part... loading adress+BASIC stuff --------------------------
#rw &0801 ; Load adress (C64)
#rw BasicEnd,1997 ; Adress of next line + line number
#b &9e,&32,&30,&36,&32 ; Basic "SYS 2062" instruction
#b 0 ; End of basic line
.BasicEnd
#b 0,0,0 ; End of basic program
;---- Assembly language ForEVER ------------------------------------------------
.start
ldx #0
.loop
txa
sta screen,x
sta colram,x
dex
bne loop
rts