mirror of
https://github.com/jeremysrand/abCalc.git
synced 2024-12-26 15:29:15 +00:00
The "Ass-Backward Calculator" for the Apple //GS - an RPN calculator NDA
abCalc.xcodeproj | ||
.DS_Store | ||
.gitignore | ||
README.md |
abCalc
The "Ass-Backward Calculator" for the Apple //GS - an RPN calculator NDA
The source can be built both from Mac OSX, resulting in a commandline binary which you can run on a Mac and from a //GS. To build and execute on a Mac:
- Make sure you have Xcode installed. If not, grab it from the Mac App store.
- Execute "make -f Make.mac"
- Run "./abCalc"
In theory, it should work on any POSIX platform like Linux, Solaris, etc but I have not tested it on any other platforms.
To build this on a //GS, you need a number of prerequisites:
- Orca/C v2.0.1
- GNO/ME v2.x
- occ - the Orca/C wrapper
- dmake
To build this on a //GS, the steps are:
- Somehow copy the files to your //GS. Depending on whether you are using a real machine or an emulator, your approach here may be different.
- Find this line in your ORCACDefs/scrap.h file: extern pascal void PutScrap(unsigned Longint, Word, Pointer) inline(0x0C16,dispatcher); and change it to extern pascal void PutScrap(LongWord, Word, Pointer) inline(0x0C16,dispatcher); This is a bug in the headers which causes ORCA/C to generate the wrong output.
- Once you have the files, you should first execute "dmake fixfiles". This makes sure all files have the right file types.
- Execute "dmake"
When done, you will have two binaries. The abCalc binary is a shell command you can use from GNO/ME:
And abCalcNDA is a new desk accessory which you can use from within GS/OS applications: