Post Reply 
(16C) WSIZE? Determine word size
03-31-2019, 01:45 AM (This post was last modified: 03-31-2019 03:30 PM by mfleming.)
Post: #2
RE: (16C) WSIZE? Determine word size
I'm embarrassed to say I've managed to make a right turn by taking three lefts! As cdmackay's program comment reminded me, there's a much simpler way to get the word size.

Code:

LBL A    43 22 A
CLx      43 35   Zero
f NOT    42 30   All ones
g B#     43 7    How many?
RTN      43 21

NB: Replace "CLx" in the second line with "0" to preserve the content of the X register. This code is now a semi-permanent resident as LBL F in memory!

Remember kids, "In a democracy, you get the government you deserve."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (16C) WSIZE? Determine word size - mfleming - 03-31-2019 01:45 AM



User(s) browsing this thread: 1 Guest(s)