LBPHacker
LBPHacker
646 / 14
7th Jul 2018
2nd Apr 2022
I made a computer again. It can do a lot of stuff the previous one couldn't and still can't do a lot of stuff I'd like it to be able to do. It definitely can solve quadratic equations. Check the relevant forum thread too. And try tpt.setfpscap(2)!
technology computer magic electronics 16bit processor programmable subframe rt2812a r216

Comments

  • LBPHacker
    LBPHacker
    8th Jul 2018
    GOSH not here. Send me a PM.
  • LBPHacker
    LBPHacker
    8th Jul 2018
    Okay, hold on, I'm gonna update the assembler on GitHub; I fixed a few bugs. It might be a good idea to upgrade yours from the repository every hour or so.
  • RebMiami
    RebMiami
    8th Jul 2018
    r2asm.lua:795: in function <r2asm.lua:783> [C]: in function 'xpcall' r2asm.lua:783: in main chunk [r2asm] this is a serious problem in the assembler (it was too long for one comment)
  • RebMiami
    RebMiami
    8th Jul 2018
    I logged it and it says: [r2asm] r2asm.lua:30: bad argument #2 to 'format' (number expected, got string) [r2asm] stack traceback: r2asm.lua:817: in function <r2asm.lua:815> [C]: in function 'format' r2asm.lua:30: in function 'print_e' r2asm.lua:347: in function 'print_el' r2asm.lua:543: in function <r2asm.lua:536> [C]: in function 'gsub' r2asm.lua:536: in function 'assemble_source'
  • RebMiami
    RebMiami
    8th Jul 2018
    Alright, I got the block of error text this time.
  • RebMiami
    RebMiami
    8th Jul 2018
    I don't think so.
  • LBPHacker
    LBPHacker
    8th Jul 2018
    Well, if you put r2asm.lua into the TPT folder, /path/to/r2asm.lua becomes simply r2asm.lua. It's not in the to directory which is inside the path directory, is it?
  • RebMiami
    RebMiami
    8th Jul 2018
    I think I might be doing something wrong. I copied one of the example programs from the manual into my code.asm file, and put the r2asm.lua file in my TPT folder. When I run loadfile("/path/to/r2asm.lua")("/path/to/code.asm") , it says I "attempted to call a nil value".
  • LBPHacker
    LBPHacker
    8th Jul 2018
    Good luck with that! Note that there may be a slight delay between what's in the save, what's on my server, what's on GitHub and what I'm working on currently. I'll try to keep everything up-to-date though.
  • RebMiami
    RebMiami
    8th Jul 2018
    Okay, I've got the assembler and I'm now trying to figure out how to program it. I'll be using the manual for help understanding how the assembly works and the assembly code for the quadratic equation solver for reference.