pouët.net

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?
added on the 2005-02-17 14:49:55 by Chris_ZD Chris_ZD
http://www.antimon.org/code/raster.txt

you should read until the end of the page where you took the code from
added on the 2005-02-17 14:56:50 by dalezr dalezr
i see, you already read it. tried tasm yet?

added on the 2005-02-17 15:05:44 by dalezr dalezr
c64 asm! \o/
added on the 2005-02-17 15:07:16 by Bagpuss Bagpuss
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?
added on the 2005-02-17 15:13:32 by Chris_ZD Chris_ZD
tasm = turbo assembler?
added on the 2005-02-17 15:14:05 by Chris_ZD Chris_ZD
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


added on the 2005-02-17 15:44:25 by hollowman hollowman
Thanks, I found turbo assembler 7.0 improved by syndicate. Now where can I find a manual for tasm commands and everything?
added on the 2005-02-17 16:06:46 by Chris_ZD Chris_ZD
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.
added on the 2005-02-17 16:24:35 by Chris_ZD Chris_ZD
wow it works indeed.....
added on the 2005-02-17 16:27:27 by Chris_ZD Chris_ZD
http://www.fairlight.to/docs/text/tass_docs.html
added on the 2005-02-17 17:04:51 by hollowman hollowman
i like the "posting on pouet before thinking" feeling this thread gives.
I think it draws a triangle using DirectX!
added on the 2005-02-18 18:37:59 by Stelthzje Stelthzje

login