music
OSdata.com: programming text book 

OSdata.com

processor emulator manual
commands
compile

summary

    Either the ASSEMBLE or COMPILE commands will start storing processor instructions into program memory. For now these two commands have the exact same effect, although this will probably change in the future. This mode can be identified by a > prompt. Commands (as contrasted with assembly language instructions) will be implemented immediately.

    There are severe restrictions on the use of the compile command, documented below. These restrictions are a result of the emulator being in an early state of development and they will eventually be removed, but you need to know these restrictions if you intend to use the emulator now.

commands
manual table of contents
emulator

Google

processor emulator manual
commands
compile

    Either the ASSEMBLE or COMPILE commands will start storing processor instructions into program memory. For now these two commands have the exact same effect, although this will probably change in the future. This mode can be identified by a > prompt. Commands (as contrasted with assembly language instructions) will be implemented immediately.

    There are absurd restrictions on the compile or assemble mode. These restrictions are imposed by the fact that the emulator is still in a very early stage of development. These restrictions will be removed, but it is important to get a reasonable range of functionality before cleaning up these restrictions.

    The compile or assemble mode only works correctly for the first processor (processor 0).

    The compile or assemble mode places an instruction into the location identified by the current PC. It overwrites any previous contents of that location in program code memory.

    The program code memory must start at location zero (0) and fill every consecutive location until the last instruction’s program code memory location.

    Once a program code memory lcoation has been filled, it may at any time be overwritten with any other instruction. Use the CHANGE PC location command to prepare to overwrite a previously entered instruction.

    You may create a series of NOP instructions to prefill the progtram code memory to guarantee reserving the appropriate space and then place instructions in any order you desire. I will be adding a FILL NOP number to allow you to quickly do this NOP fill.

    Instructions are added without evaluating whether they are valid or not. Invalid instructions will fail at execution time. At the moment this will result only in an indication of a bad command or instruction and either no change to the processor state or only a change to the PC value (depending on factors that will be fixed later).

    Yes, these are absurd restrictions, but the chocie is to give access to the capabilities already coded or to prevent access to the ability to store a program. For my own testing, I need the ability to store a short program (to test branch, jump, and subroutine instructions as they are implemented), so that decided which choice you get.

commands
manual table of contents
emulator

contact

    If you find this interesting and want to contact me, write to Milo, PO Box 5237, Balboa Island, California, 92662, USA.

if you want to make a tax-deductible donation to the StarTree107 Foundation to support this educational work, contact Dr. Barry at 949-675-5778

    Challenge: Homeless or Facebook


return to table of contents
free downloadable college text book

previous page next page
previous page next page
Google


Made with Macintosh

    This web site handcrafted on Macintosh computers using Tom Bender’s Tex-Edit Plus and served using FreeBSD .

Viewable With Any Browser


    †UNIX used as a generic term unless specifically used as a trademark (such as in the phrase “UNIX certified”). UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd.

    Names and logos of various OSs are trademarks of their respective owners.

    Copyright © 2011 Milo

    Created: May 24, 2011

    Last Updated: May 31, 2011


return to table of contents
free downloadable college text book

previous page next page
previous page next page