Thursday, October 22, 2009 12:02 AM,
A student writes: Hey Proffessor Patt, I am testing my program and everything seems to be working, but is there an easier way to load the grades in x3200-x320F instead of doing it manually? I want to test different numbers, but just wondering if there is an easier way, just with a click of a button. <<name withheld to protect the student who is looking for an easier way>> Sure. Simplest way is to assemble and load a file in the Simulator's memory such as the following: .ORIG x3200 .FILL #92 .FILL #88 .FILL #87 .FILL #86 .FILL #63 .FILL #55 .FILL #54 .FILL #53 .FILL #52 .FILL #51 .FILL #45 .FILL #32 .FILL #29 .FILL #21 .FILL #15 .END You do want to be sure of two things. First that the .ORIG pseudo-ops are such that there is no overlap, so they can independently occupy the designated parts of memory. Second, since the each file loaded will reset the PC with the starting address of that module, you want to load this file before the main program, since you want the PC to contain the first instruction of the program when you run it. Hope this helps. Yale Patt