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 - Integer maths

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

Integer maths (by Ziggy)
I note maths performed within LDmicro is nominally 16 bit integer work.

While this is true claimed I also see that we can cast a variable to be a longer than 16bits integer value.

Good for multiplication say. When invoking MUL instruction and looking for a 16 bit by 8 bit product how does MUL handle that?

Is it necesary to cast the variable whihc will hold the product into a 3 byte variable before invoking MUL? or is the product automatically cast to the correct size variable?
Sun Dec 2 2018, 16:10:41
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):