Skip to content

Files

Latest commit

author
retrohun
Jan 18, 2020
0db6bde · Jan 18, 2020

History

History

i8080emulatorinbash

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 18, 2020
Jan 18, 2020

i8080 emulator in bash

Some rights reserved! Vintage technology preserved.


Previous Index Next

What is it?

An Intel 8080 CPU based vintage machine emulator that loads 2k basic (re)published by Oscar Toledo. Used only STDIO via IN/OUT statements, no storage or other peripherals are implemented. Quick and dirty code, unoptimized and slow, corrected dozens of bugs, but still might be buggy! I wrote this in bash, tested under : "GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)"

Example session

$ bash i8080.sh
Quick and dirty i8080 emulator by NASZVADI Peter, 2019.
Press Ctrl+C to quit anytime!
Initializing upper memory to NOPs
Initializing register values
Starting CPU emulation


OK
>PRINT "Interactive mode (statements must be allcaps!)"
Interactive mode (statements must be allcaps!)

OK
>PRINT 42+100
   142

OK
>10 FOR I=1 TO 3
>20 PRINT "Random number:",RND(6)
>30 NEXT I
>LIST
  10 FOR I=1 TO 3
  20 PRINT "Random number:",RND(6)
  30 NEXT I

OK
>RUN
Random number:     4
Random number:     6
Random number:     1

OK
>
$ # Ctrl-C is pressed, session terminated

External links

Have fun!

Previous Index Next