home *** CD-ROM | disk | FTP | other *** search
- Date: Sat 15 Dec 90 15:51:00
- From: Apm279l@vaxc.cc.monash.edu.au
- To: All - part 1
- Subj: SATURN ASSEMBLY LANGUAGE DEBUG
-
- * Moved from HPHH area, 1:115/678.0, on 18 Dec 90 at 05:57
-
- From: apm279l@vaxc.cc.monash.edu.au
-
- This is part 1 of 5. -- cut here --
- The following is my "sim1" package. It is for debugging your saturn code
- before entry to your 28/48. I use the SASS assembler, so I've only run
- SASS-format code through it. It is possible there are a few bugs lurking
- around, so don't automatically assume a problem results from something in your
- code. Carry is set/cleared according to my understanding of what happens
- on the calculator (and correspondence with Alonzo). HOWEVER: it is possible
- some other instructions alter the carry, or that my understanding is wrong.
- At one stage, it was thought that gosubs alterred carry, I have been told
- that this is not the case, and gosubs in this code don't alter carry.
-
- I'm sorry I don't have time to make this code cope with more general cases,
- but I don't yet. It will work for almost all your code though, and I've
- found it quite easy to patch it's output C source to allow for some other
- cases anyway. For example, you can make up a C routine to simulate the
- effect of a jump to a part of your code which accesses RAM, if you know
- what a typical call might do.
-
- For more info, see the comments at the start of sim1.c
-
- Installation:
-
- There are 3 files in this package: SIM1.C, SIM1.H, LABELS.H
- I've not tar'd them as they are not too long, and this makes it easier to
- unpack on any machine.
- All you need to do is compile sim1.c, and run it. You are prompted for
- the input file (similar to the source you might feed into SASS), and
- an output file. You are then asked if you wish to step through your
- programme. If you answer in the affirmative, the output c source will
- include calls to a debugging module, and running it will be like running
- your code through a debugger.
-
- Cheers, and enjoy,
-
- Peter apm279l@vaxc.cc.monash.edu.au
-
-
- _ __
- ,/^._/ ^\ { \-.
- ,-/~^/ `-/~ \.
- ( THE 48 ??!! }
- ___ / { A MERE ABACUS ,/
- ,//| \ \ / ~ ~^\ MENTION IT NOT! |
- ,// =|H \*\ \,-+/^\ }
- ,// = =| P \ \ `-. _,/
- ,// = = =|\ \ \ ~v/'~
- ,// = = = =| \ 2 \ \
- // = = = = =| \ 8 \ \
- ||= = = = = =|\ \ S | |
- ||= = = = = =|= \ \ | |
- ||= = = = = =|= = \ \| |
- ||= = = = = =|= = = \ | /
- ||= = = = = =|= = = = \ ||
- ||= = = = = =|= = = = = \||
- ||= = = = = =|= = = = = =||
- ||= = = = = =|= = = = = =||
- ||= = = = =,/ \ = = = = =||
- ||= = = =,/ \ = = = =||
- ||= = =,/ \ = = =||
- ||= =,/ \ = =||
- ||=,/ \ =||
- \|/ \||
-
-
-