-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trace access to Fred, Jim and Sheila
- Loading branch information
Showing
8 changed files
with
192 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package main | ||
|
||
/* | ||
Memory map, pages: | ||
00: zero page | ||
01: stack | ||
02: mos vectors and other | ||
... | ||
80: loaded rom | ||
... | ||
fa: brk error messages | ||
fb: entrypoints trapped by the host | ||
fc: FRED | ||
fd: JIM | ||
fe: SHEILA | ||
ff: mos and 6502 entrypoints | ||
*/ | ||
const ( | ||
zpAccumulator uint16 = 0x00fc | ||
zpErrorPointer uint16 = 0x00fd | ||
|
||
vectorBRK uint16 = 0x0202 | ||
|
||
// ROM header https://tobylobster.github.io/mos/mos/S-s2.html#SP26 | ||
userMemBottom uint16 = 0x0e00 | ||
romStartAddress uint16 = 0x8000 | ||
romServiceEntry uint16 = 0x8003 | ||
romTypeByte uint16 = 0x8006 | ||
romCopyrightOffsetPointer uint16 = 0x8007 | ||
romTitleString uint16 = 0x8009 | ||
|
||
// Scratch area for errors in page 0xfa | ||
errorArea uint16 = 0xfa00 | ||
errorMessageMaxLength int = 100 | ||
|
||
// Entry points for host interception in page 0xfb | ||
entryPoints uint16 = 0xfb00 | ||
epUPT uint16 = 0xfb00 | ||
epEVNT uint16 = 0xfb01 | ||
epFSC uint16 = 0xfb02 | ||
epFIND uint16 = 0xfb03 | ||
epGBPB uint16 = 0xfb04 | ||
epBPUT uint16 = 0xfb05 | ||
epBGET uint16 = 0xfb06 | ||
epARGS uint16 = 0xfb07 | ||
epFILE uint16 = 0xfb08 | ||
epRDCH uint16 = 0xfb09 | ||
epWRCH uint16 = 0xfb0a | ||
epWORD uint16 = 0xfb0b | ||
epBYTE uint16 = 0xfb0c | ||
epCLI uint16 = 0xfb0d | ||
epIRQ2 uint16 = 0xfb0e | ||
epIRQ1 uint16 = 0xfb0f | ||
epBRK uint16 = 0xfb10 | ||
epUSER uint16 = 0xfb11 | ||
epSYSBRK uint16 = 0xfb12 | ||
epRDRM uint16 = 0xfb13 | ||
epVDUCH uint16 = 0xfb14 | ||
epGSINIT uint16 = 0xfb16 | ||
epGSREAD uint16 = 0xfb17 | ||
epNET uint16 = 0xfb18 | ||
epVDU uint16 = 0xfb19 | ||
epKEY uint16 = 0xfb1a | ||
epINS uint16 = 0xfb1b | ||
epREM uint16 = 0xfb1c | ||
epCNP uint16 = 0xfb1d | ||
epIND1 uint16 = 0xfb1e | ||
epIND2 uint16 = 0xfb1f | ||
epIND3 uint16 = 0xfb20 | ||
epEntryPointsLast uint16 = 0xfb20 | ||
|
||
maxFiles = 5 | ||
errorTodo uint8 = 129 // TODO: find proper error number | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.