Browse Search Popular Register Upload Rules User list Login:
LX3.5 CPU with Flash, RAM and simple GPU

screenshot of the scene

Author: ags131

Group: Default

Filesize: 27.57 kB

Date added: 2010-12-17

Rating: 4.5

Downloads: 434

Views: 573

Comments: 0

Ratings: 2

Times favored: 1

Made with: Algodoo before v1.8.5


Scene tag

My Newest CPU with New LG1 GPU, 128 Sector RAM and 512 Flash

Flash has been improved and READ/WRITE commands are no longer necessary but are still supported.
I have also reduced the lag with the RAM clearing upon reboot. Ram now keeps a list of all edited sectors then uses that list to reset. Much faster as long as there is less than 128 STORE commands executed. :)
Console Output has been updated to display memory address of command executed. The console will keep a output of ALL commands executed.

There is a sample Hello World Program on flash that will boot when the computer resets. F2 does a reset of the computer and holding r for a second or two after Hello World Appears will cause the program to trigger a reset. It may take several presses of r due to KEYWAIT not always detecting the press. If someone can recommend or build a better keyboard then PLEASE let me know! This one isnt too bad but is too fast on some PCs and too slow on others.

I will setup the system in a case with floppy support soon hopefully.

Boot rom is automaticly copied into ram starting at address 0
F2 reboots system

Programs are executed from memory. When the computer starts it executes memory address 0 Which MUST contain ONE command. In this case, The first command from BOOT ROM. Boot rom MLOADS 20 sectors from flash starting at address 0 and places them in memory starting at address 5. Then a goto 5 command is executed to boot the flash program that was copied. The copied program can contain instructions to copy more programs, and os, or even just print hello world.

CPU Commands:
LOAD reg mem add Loads data from Memory address into the specified register
STORE reg memadd Reverse of LOAD
CLOAD reg cont Same as LOAD except loads from the specified controller (Flash, LX1, etc)
CSTORE reg cont
CEVAL command Executes command. Most Useful with Controllers. EX: ["CEVAL","gpu.removeBox(\"disp1\", \"test\")"]
ADD reg1 reg2 reg3 Adds reg1 and reg2 and stores the result in reg3
GOTO line Transfer to program line specified
KEY key line1 line2 Goto line1 if key is pressed else goto line2
KEYWAIT key line1 Waits for key to be pressed before going to specified line
WAIT second Waits the specified seconds before continueing execution (Uses sim.time so may be longer or shorter depending on computer performance)

RESET Self explanatory. Reboots.

Please comment and Rate!
Last edited at 2010/12/18 20:35:44 by ags131
Please log in to rate this scene
Similar scenes
Title: SLR Camera
Rating: 5
Filesize: 0.51 MB
Downloads: 1564
Comments: 8
Ratings: 1
Date added: 2011/11/09 18:00:53
Made with: Algodoo v2.0.0
Rating: rated 5
Title: Flasher Tool For Non-Scripted Scenes
Rating: 5.5
Filesize: 101.03 kB
Downloads: 804
Comments: 4
Ratings: 2
Date added: 2014/01/08 07:01:15
Made with: Algodoo v2.1.0
Rating: rated 5.5
Title: Flash car
Rating: 5
Filesize: 63.8 kB
Downloads: 74
Comments: 0
Ratings: 1
Date added: 2020/04/17 06:54:14
Made with: Algodoo v2.1.3
Rating: rated 5
Title: Dead Flash v.1
Rating: 5
Filesize: 86.46 kB
Downloads: 152
Comments: 0
Ratings: 1
Date added: 2015/07/16 17:27:36
Made with: Algodoo v2.1.0
Rating: rated 5
Title: LX3 CPU with Flash, RAM and simple GPU
Rating: 5.625
Filesize: 28.22 kB
Downloads: 500
Comments: 4
Ratings: 2
Date added: 2010/12/03 19:11:42
Made with: Algodoo before v1.8.5
Rating: rated 5.6
Title: Benchmark
Rating: 5
Filesize: 9.67 kB
Downloads: 471
Comments: 9
Ratings: 1
Date added: 2012/02/27 01:47:12
Made with: Phun
Rating: rated 5
This scene is a response to:
Title Author Rating Downloads Comments Date added
LX3 CPU with Flash, RAM and simple GPU ags131 5.6 (2 votes) 500 4 2010/12/03 19:11:42
show grid