[Index] [Previous] [Next]

2.6 Moving FACCUM about

A group of functions for loading, copying, and pushing FACCUM.

FPush

0A02 EB FPush XCHG
0A03 2A6F01 LHLD FACCUM
0A06 E3 XTHL
0A07 E5 PUSH H
0A08 2A7101 LHLD FACCUM+2
0A0B E3 XTHL
0A0C E5 PUSH H
0A0D EB XCHG
0A0E C9 RET

 

FLoadFromMem

FLoadFromMem loads FACCUM with the fp number pointed to by HL. It does this by calling a function to load BCDE with the in-memory number, then falls into FLoadFromBCDE.

0A0F CD200A FLoadFromMem CALL FLoadBCDEfromMem

FLoadFromBCDE

Loads FACCUM with BCDE.

0A12 EB FLoadFromBCDE XCHG
0A13 226F01 SHLD FACCUM
0A16 60 MOV H,B
0A17 69 MOV L,C
0A18 227101 SHLD FACCUM+2
0A1B EB XCHG
0A1C C9 RET

 

FCopyToBCDE and FLoadBCDE

0A1D 216F01 FCopyToBCDE LXI H,FACCUM
0A20 5E FLoadBCDEfromMem MOV E,M
0A21 23 INX H
0A22 56 MOV D,M
0A23 23 INX H
0A24 4E MOV C,M
0A25 23 INX H
0A26 46 MOV B,M
0A27 23 IncHL+Return INX H
0A28 C9 RET

 

FCopyToMem

Copies FACCUM to another place in memory pointed to by HL.

0A29 116F01 FCopyToMem LXI D,FACCUM
0A2C 0604 MVI B,04
0A2E 1A FCopyLoop LDAX D
0A2F 77 MOV M,A
0A30 13 INX D
0A31 23 INX H
0A32 05 DCR B
0A33 C22E0A JNZ FCopyLoop
0A36 C9 RET

 


[Index] [Previous] [Next]