Subject: Re: Date: Mon, 25 Mar 2002 19:47:21 -0800 From: Minoru Hasegawa To: xu sword Hi (1) One problem in storing a program and data in PROM is: the software stores programs from address 0 onward: so it is difficult to allocate a number in the address 100. If you were to use PROM for testing, use the address just below your program, 015-019, for data at 100-104. (2) "ldg" is OK but "sdg" is not . Happy computing ! Minoru Hasegawa MH xu sword wrote: > hi, Dr. Hasegawa: > > I had finished all machine instructions wiring, and I wrote a program to > test it, but I have two problems: > > 1. I am not really sure how to store constant number to PROM. For example, > > if I want to store number FFFD into address 100, what do I do? > > 2. Can instructuon SDG work with PROM? > > by the way, this is my test driver > > varibles: > > 100 FFFD > 101 0001 > 102 0002 > 103 03F2 > 104 000E > > program (assemble code) > > 000 LDG[100] > 001 ADD[101] > 002 AND[102] > 003 XOR[103] > 004 LOR[104] > 005 NOT > 006 ROL > 007 NOP > 008 JMP[00A] > 009 HLT > 00A LDG[100] > 00B ADD[101] > 00C JMI[00B] > 00D SRJ[012] > 00E HLT > 00F NOP > 010 NOP > 011 NOP > 012 KTG > (013 INJ[104]) > 013 SDG[200] > 014 INJ[200] > > progrom(machine code) > 6100 > 1101 > 3102 > 2103 > 4104 > 5000 > D000 > F000 > A00A > 0000 > 6100 > 1101 > 900B > 8012 > 0000 > F000 > F000 > F000 > E000 > (B104) > 7200 > B200 > > _________________________________________________________________ > 在您的行動裝置上傳送接收 Hotmail 郵件,請移至 http://mobile.msn.com。