![]() That's why the instruction LOAD SOURCE has the value 0x1003. In our simple program theĪddress of the data is encoded into the LOAD and STORE instructions. Occupies 5 words (shorts) in the memory array. This simple program has three instructions and two words of data. In the Handout SimpleMachine, we examined the program copy0:Ġx1003 # (address 0) LOAD SOURCE load word to copy from address 3Ġx2004 # (address 1) STORE DEST store it in new location (address 4)Ġx4040 # (address 3) SOURCE: the word to copyĠx0000 # (address 4) DEST: the location to copy to That we can view memory as an array of shorts, and the address of eachĭatum is the same as its index in the memory array. ![]() ![]() Another is that all programs start at 0Īnd use contiguous addresses. ![]() We discussed, one nice thing about the Simple machine is its singleĭata type - a 16-bit integer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |