Post Reply 
NOP on HP-41C
12-28-2020, 12:25 PM
Post: #13
RE: NOP on HP-41C
(11-22-2020 12:50 AM)Thomas Okken Wrote:  Hmm. I have been thinking about how to add a NOP instruction to Free42 in a backward-compatible manner, and I had completely forgotten about TEXT 0. It fits the bill perfectly! Nice, I'll go ahead and use that, then. Smile

a SKIP instruction would also be nice, but there is no 1-byte equivalent that will always work ;-)

You might wonder where a SKIP instruction would be useful. If you have two tests, A (eg. X=Y?) and B (eg FS? 25), how would you implement:

1. if A or B then x; y; end :

01 ^A
02 B
03 SKIP
04 GTO 00
05 x
06 y
07 LBL 00

2. if A and B then x; end

01 A
02 ^B
03 SKIP
04 x

I've always managed to find 1-byte always-false-fillers to use as skip, though ;-)
Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
NOP on HP-41C - Benoit Maag - 11-21-2020, 09:58 PM
RE: NOP on HP-41C - Thomas Okken - 11-21-2020, 10:36 PM
RE: NOP on HP-41C - Valentin Albillo - 11-21-2020, 10:58 PM
RE: NOP on HP-41C - Dave Britten - 12-28-2020, 02:17 PM
RE: NOP on HP-41C - Valentin Albillo - 12-28-2020, 03:37 PM
RE: NOP on HP-41C - Dave Britten - 12-28-2020, 05:57 PM
RE: NOP on HP-41C - hth - 12-28-2020, 06:51 PM
RE: NOP on HP-41C - Dave Britten - 12-28-2020, 08:15 PM
RE: NOP on HP-41C - Sylvain Cote - 12-28-2020, 08:37 PM
RE: NOP on HP-41C - Dave Britten - 12-28-2020, 08:59 PM
RE: NOP on HP-41C - hth - 12-28-2020, 10:33 PM
RE: NOP on HP-41C - Dave Britten - 12-29-2020, 01:57 AM
RE: NOP on HP-41C - Paul Dale - 12-29-2020, 02:31 AM
RE: NOP on HP-41C - Massimo Gnerucci - 11-22-2020, 12:00 AM
RE: NOP on HP-41C - Thomas Okken - 11-22-2020, 12:35 AM
RE: NOP on HP-41C - Gene - 11-22-2020, 12:39 AM
RE: NOP on HP-41C - Sylvain Cote - 11-22-2020, 12:43 AM
RE: NOP on HP-41C - Thomas Okken - 11-22-2020, 12:50 AM
RE: NOP on HP-41C - Werner - 12-28-2020 12:25 PM
RE: NOP on HP-41C - Gene - 11-22-2020, 01:34 AM
RE: NOP on HP-41C - Benoit Maag - 11-22-2020, 02:01 AM
RE: NOP on HP-41C - Namir - 11-22-2020, 02:48 AM
RE: NOP on HP-41C - Benoit Maag - 11-22-2020, 03:38 PM
RE: NOP on HP-41C - Namir - 12-28-2020, 01:56 PM



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