Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Byte code and byte variables

(you are viewing a thread; or go back to list of threads)

Byte code and byte variables (by Sven Schlender)
Hi,

If I get my interpreter for LDmicro byte code to run I will emulate i.e. UART and EEPROM access via some special named variables (like suggested here in an earlier thread).

Just a thought: it would be nice also to have byte variables here, epecially for faster processing on 8-bit machines. You need some more opcodes (especially the variable opcodes: I have counted 10) and you probably have to handle casting between byte and int variables (two more opcodes). What do you think?

Best regards, Sven.
Sat Jan 21 2012, 07:14:24
(no subject) (by Jonathan Westhues)
It would be possible, but that would be a fairly major undertaking, since it would be necessary to provide some way for the user to specify whether a variable was 8 or 16 bits, and then to propagate that information all the way from the user interface to the intermediate code to the PIC and AVR (and other) back ends.

I'd thought about this for floating point variables too. I have very little time to work on this program now, so I'm not sure if I'll ever implement it.
Sat Jan 21 2012, 17:57:03
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):