(HP71B) ASM question
|
08-05-2024, 02:12 PM
(This post was last modified: 08-05-2024 03:33 PM by J-F Garnier.)
Post: #21
|
|||
|
|||
RE: (HP71B) ASM question
(08-05-2024 04:21 AM)brouhaha Wrote:(07-30-2024 07:54 AM)J-F Garnier Wrote: I didn't know the connection to the Fairchild PPS 25.See my comment in the HP 9199A thread, and Steve Simkin's reply. Thanks for linking to this thread ! As Kim, I missed it at the time, maybe I misread "9199" as a TI 99xx thing (a completely different story too). Quote:Quote:Do you know where the Capricorn CPU architecture, used in the Series 80 and the 75C, comes from?The HP Journal article KeithB mentioned explains their rationale for designing a custom architecture, namely BCD arithmetic and variable length data. It is unclear that any specific architecture(s) influenced it, other than the generalized influence of the BCD and variable length word of the calculator processors. I can also think of the CDP 1802 with its 16 16-bit register bank (so only 32 bytes total). As for the Capricorn, one of the register was acting as the program counter, but the subroutine mechanism was completely different and unusual. Actually I used it for a project beginning of the '80s at about the same time I was discovering the HP-85 assembly language. The 1802 was introduced in 1976, so I doubt it could have been a source of inspiration to HP. The story of the 1802 is interesting too. J-F |
|||
08-17-2024, 08:46 AM
(This post was last modified: 08-21-2024 03:09 PM by floppy.)
Post: #22
|
|||
|
|||
RE: (HP71B) ASM question
New word "X<0?" since it was not in the HP71B Forth standard word list but in the HP41. Variants of it with different P values will create the other missing X<=0? & X>0?
( the missing X#0? would be Code: X=0? NOT Code: =XXYY EQU #E212D comparison of X and perhaps Y (or zero) UPDATE. All X comparison with 0 in a single file Code: * X<0? check if the value in X is <0 then put 0 (false) Any remarks are welcomed for improvement or shortening of such suggested Forth words. HP71B 4TH/ASM/Multimod, HP41CV/X/Y & Nov64d, PILBOX, HP-IL 821.62A & 64A & 66A, Deb11 64b-PC & PI2 3 4 w/ ILPER, VIDEO80, V41 & EMU71, DM41X |
|||
08-17-2024, 01:40 PM
Post: #23
|
|||
|
|||
RE: (HP71B) ASM question
Lets give more flexibility in working with the float stack in Forth.
the entry point listed in the new words.. Code: =OX EQU #2FBD0 X address Code: * X<> exchange the value in the variable with the value in X like the HP41 command Code: * X<>Z exchange the HP41 registers. tested 12 July 2024 Code: * X<>T exchange the HP41 registers, tested 12 July 2024 Code: * X<>L exchange the HP41 registers, tested 12 July 2024 More words needed like example Z<>L ? this word is X<>Z X<>L X<>Z therefore Z<>L could be a new Forth word (lower need since this is a combination of the 3 above new words). As usual, remarks are welcomed. HP71B 4TH/ASM/Multimod, HP41CV/X/Y & Nov64d, PILBOX, HP-IL 821.62A & 64A & 66A, Deb11 64b-PC & PI2 3 4 w/ ILPER, VIDEO80, V41 & EMU71, DM41X |
|||
08-22-2024, 09:32 AM
(This post was last modified: 08-22-2024 12:15 PM by floppy.)
Post: #24
|
|||
|
|||
RE: (HP71B) ASM question
Since beeping is healthy, lets create the TONE word like in HP41.
Usefull? perhaps Entry points Code: =ABS EQU #E1A23 (n -- |n|) Code: * create HP41 like tone function with input 0 (low)..9 (high) UPDATE: missing entry points included HP71B 4TH/ASM/Multimod, HP41CV/X/Y & Nov64d, PILBOX, HP-IL 821.62A & 64A & 66A, Deb11 64b-PC & PI2 3 4 w/ ILPER, VIDEO80, V41 & EMU71, DM41X |
|||
08-23-2024, 07:37 AM
Post: #25
|
|||
|
|||
RE: (HP71B) ASM question
Question: what is the best method for creating PI in Forth/ASM?
Is there a memory optimized calculation procedure? In HP71B, apart from using the BASICX command with PI as parameter in a Forth word, its possible to upload a constant; but perhaps not the best memory cautious method. Comments/remarks are welcome. Entry points Code: =SAVEFP EQU #E717A save Forth pointer Code: * PI : put PI into X in the stack. uplift the float stack. lastx not changed (like HP41) HP71B 4TH/ASM/Multimod, HP41CV/X/Y & Nov64d, PILBOX, HP-IL 821.62A & 64A & 66A, Deb11 64b-PC & PI2 3 4 w/ ILPER, VIDEO80, V41 & EMU71, DM41X |
|||
09-03-2024, 03:36 PM
Post: #26
|
|||
|
|||
RE: (HP71B) ASM question
Now, here is one new word written in ASM, like the HP41 function R-P, now for for HP71B Forth.
A warning is coming during the use WRN: However the result is fine. If anybody has an idea how to take this away, please contact me (the word works). Code: ************************************************************ HP71B 4TH/ASM/Multimod, HP41CV/X/Y & Nov64d, PILBOX, HP-IL 821.62A & 64A & 66A, Deb11 64b-PC & PI2 3 4 w/ ILPER, VIDEO80, V41 & EMU71, DM41X |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)