public:calculator:guides:dm41x_ladybug_module
This is an old revision of the document!
Table of Contents
DM41X Ladybug Module
Another HP16 emulation
Ladybug Key Overlay
Details
Ladybug is a more user-friendly, if less versatile, “HP16C programmer's calculator” module than the fully-featured HP16 module by Angel Martin. Both have their uses, but for a simple calculator for bit-banging while writing 6502 assembly code Ladybug does everything, with a less convoluted User Interface.
Launching
- modules needed:
- Ladybug
- Boost
- OS/4
To switch to “Ladybug Integer” mode : XEQALPHAINTEGERALPHA
To leave (and return to normal mode) : XEQALPHAEXITAPPALPHA
Using the DM41X CST menu simplifies this, set 2 Custom menu entries for INTEGER and EXITAPP
Nice features
- A “CMP” function akin to 6502 - sets flags in the same way but doesn't change the register(s)
- Status Flags : C, Z, N and V equivalent to 6502 flags and set in the same way after various operations.
- Flag
0= ZeroZ - Flag
1= SignN - Flag
3= CarryC - Flag
4= OverflowV
- 2's-complement mode is set with Flag
2 - Leading Zeros display is set with Flag
5
Word Sizeis set with Shift+R/SWindowingis selected with .- Bits can be
setShift+4,resetShift+5 andtestedShift+6
- Boolean Operations on values in X and Y registers
ANDShift+1ORShift+2XORShift+3
NOTShift+CHS (invert each bit, on the value in the X register)
ShiftandRotatefunctions are conveniently accessible - see Overlay picture above - without delving into menus or launchers
— John Pumford-Green 23/09/22 13:40
Further Information
public/calculator/guides/dm41x_ladybug_module.1664001987.txt.gz · Last modified: (external edit)

