From: Rich (legalize_at_xmission.com)
Date: 2004-12-29 22:31:41
Marko, this is all great stuff you're giving me, thanks for the info! In article <20041229112627.GB173921@kosh.hut.fi>, Marko =?iso-8859-1?B?TeRrZWzk?= <marko.makela@hut.fi> writes: > It's customary to write a one-line BASIC header that contains a SYS > command. Sometimes, the line number of that BASIC header is the year of > publication. On the PET, you could use > 2004 SYS1037 > or > 2004 SYS1039:NEW > and have the machine code start at $040d or $040f. That'll be like JSR; > an RTS will exit to BASIC, unless you fiddle with the stack pointer. I see the idea here. I'm a little confused as to how the file would look though. How do I mix in the ASM and BASIC together in a single file? Am I relying on the default load address for a BASIC program and counting the bytes for the BASIC tokens as the "header" of my assembly code? Is that why the "NEW" version has a start address of $040F and the other has a start address of $040D? -- "The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ: <http://www.xmission.com/~legalize/book/> Pilgrimage: Utah's annual demoparty <http://pilgrimage.scene.org> Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.