Giter Site home page Giter Site logo

My program crashed the VM about sbtcvm-mark-2 HOT 4 CLOSED

eekee avatar eekee commented on August 28, 2024
My program crashed the VM

from sbtcvm-mark-2.

Comments (4)

ThomasTheSpaceFox avatar ThomasTheSpaceFox commented on August 28, 2024

ah. yea the assembler doesn't exactly tell you when the syntax is wrong. (known bug) you may want to take a look at the assembly section of the users manual. the basic arithmetic operations are add, sub, mul, and div. and they work on the values in Registers 1 and 2. and populate register 1 with the result. second, the wait instruction supports a decimal syntax. like so:
wait|:6.2
The actual operation takes a ternary-encoded fixed point number with a range from 0 to 19.683

The assembler is a bit, well dumb. most instructions will treat whats between the first and second separators as 9-trit wide ternary data... what happens is the trom winds up having lines that are too short and contain invalid characters that the VM simply doesn't know what to do with.

from sbtcvm-mark-2.

ThomasTheSpaceFox avatar ThomasTheSpaceFox commented on August 28, 2024

if what is in the users manual doesn't work or doesn't help, check some of the dozen-or-so test roms and accompanying source code. a good algorithm example would be fib.tasm (in VMSYSTEM/ROMS)

from sbtcvm-mark-2.

eekee avatar eekee commented on August 28, 2024

Ah I see! Thank you.

Not promising anything, but I'll see what I can do to improve SBTCVM-asm.txt.

from sbtcvm-mark-2.

eekee avatar eekee commented on August 28, 2024

All sorted, thanks!

I'm adding little extra bits of info to SBTCVM-asm.txt, as I said. I'll see about getting familiar with git so you can pull it when you want.

from sbtcvm-mark-2.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.