Image:
Author: ags131 Group: Default Filesize: 31.49 kB Date added: 2010-11-12 Rating: 5.2 Downloads: 617 Views: 917 Comments: 2 Ratings: 3 Times favored: 0 Made with: Algodoo before v1.8.5 Tags:
|
This is my newest PC. It contains a infinite RAM Module and my new LX1 CPU. Commands to the CPU are all in thyme instead of arrays like kutis's. Commands are:
cpu.SET(data) Sets cpu register 0 to data. data can be a array, string, or even a function!
cpu.STORE(register,address) Stores the contents of the selected register to the address in memory.
cpu.LOAD(register, address) Gets the data from the address in memory and puts it in the specified register
cpu.EVAL(register) Runs eval on the registers contents.
cpu.COPY(register1,register2) Copies Register1 to Register2
On this PC the display gets text from memory address 3.
The floppy is autoloaded into memory address 4
Example Program is on floppy.
Simple Example:
cpu.SET("Hello World!"); Sets Register 0 to "Hello World!"
cpu.STORE(0,3) STORES "Hello World!" at memory address 3 (The displays text address) |