View Full Version : Monitor + sample asm?
eseverson
06-22-00, 10:59 AM
We have an NMY-0031 w/monitor chip installed. Haven't programmed asm/C in years & would like some basic help/samples.<p>1. Can we load/run a program in ram and jump back to monitor program (to inspect results). Sample would help.<p>2. Unsure of what memory location to load program to and compiler directive to do that.<p>Any simple samples in C or asm would help us get started. Thanks.<p>----------<br>Eric Severson<br>
nmitech
06-22-00, 11:57 AM
NMIY-0031 memory map<br>U2, $0000 - $FFFF: PROGRAM only socket. 8k-byte eprom Monitor is installed from the manufacture. <br>U3, $8000 - $FC00: PROGRAM/DATA socket. 8k-byte SRAM is install from the manufacture.<br>U4, $0000 - $7FFF: DATA only socket. Empty from the manufacture.<p>You can find many sample programs on the diskette that come with the NMIY-0031. If you need a copy of the diskette plese email me at nmitech@newmicros.com<br>
eseverson
06-22-00, 12:11 PM
So I have to load the program at $8000? I didn't see any samples that showed what the compiler/asm directive should be to do that.<p>Also, question 1 - Can we run a program and jump back to the monitor?<p>----------<br>Eric Severson<br>
nmitech
06-22-00, 01:35 PM
Yes, if you use the monitor to load and run your object (hex) file. You need to put your code at $8000 and up.<p>To jump back to the monitor prompt from your program, simply add "LJMP 30h " instruction in your program.
vBulletin v3.0.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.