Can someone explain this piece of code?
category: general [glöplog]
sei ; disable interrupts
lda #<intcode ; get low byte of target routine
sta 788 ; put into interrupt vector
lda #>intcode ; do the same with the high byte
sta 789
cli ; re-enable interrupts
rts ; return to caller
intcode = *
inc $d020 ; change border colour
jmp $ea31 ; exit back to rom
I don't get the intcode thing. How should I handle the lda intcode thing? Is this supposed to work under some kind of assembler other than MCM directly?
lda #<intcode ; get low byte of target routine
sta 788 ; put into interrupt vector
lda #>intcode ; do the same with the high byte
sta 789
cli ; re-enable interrupts
rts ; return to caller
intcode = *
inc $d020 ; change border colour
jmp $ea31 ; exit back to rom
I don't get the intcode thing. How should I handle the lda intcode thing? Is this supposed to work under some kind of assembler other than MCM directly?
http://www.antimon.org/code/raster.txt
you should read until the end of the page where you took the code from
you should read until the end of the page where you took the code from
i see, you already read it. tried tasm yet?
c64 asm! \o/
Hello. No I didn't try TASM already. Where can I get it? TASM can handle that INTCODE thing directly? Is that what you say?
tasm = turbo assembler?
actually turbo assembler on c64 is usually referred to as tass =)
head over to for example http://noname.c64.org/csdb/ to find a version of tass (there are plenty)
if you really want to use a monitor instead, then put the intcode on say $1100 and lda #$00 sta 788 lda #$11 sta 789
but tass can handle lables and other convenient stuff like #< #>, so i suggest you use that instead
head over to for example http://noname.c64.org/csdb/ to find a version of tass (there are plenty)
if you really want to use a monitor instead, then put the intcode on say $1100 and lda #$00 sta 788 lda #$11 sta 789
but tass can handle lables and other convenient stuff like #< #>, so i suggest you use that instead
Thanks, I found turbo assembler 7.0 improved by syndicate. Now where can I find a manual for tasm commands and everything?
people who're not born in a hole in the ground usually try google
ok I tried TASM... that piece of code doesn't flash any screen. it doesn't anything.
wow it works indeed.....
http://www.fairlight.to/docs/text/tass_docs.html
i like the "posting on pouet before thinking" feeling this thread gives.
I think it draws a triangle using DirectX!