Interactive Assember and the Relocating Macro Assembler. Microware C Compiler
Reklama
Reklama
Appendix E. Relocating Macro Assembler Reference
E.6.4. RZB statement
RZB <expression>
The reserve zeroed bytes pseudo-instruction generates sequences of zero bytes in the code or initialized data sections, the number of which is specified by the expression.
E.7. Comparison Between Assembly Programs for the
Microware Interactive Assember and the Relocating Macro
Assembler
The following two program examples simply fork a BASIC09. The purpose of the examples are to show some of the differences in the new relocating assembler.
The differences are apparent.
* this program forks a basic09 ifp1 use ..../defs/os9defs.a
endc
PRGRM
OBJCT stk name prm prmsize entry equ $10 equ $01 equ 200 psect rmatest,$11,$81,0,stk,entry fcs /basic09/ fcb $D equ *-prm leax name,pcr leau prm,pcr ldy #prmsize lda #PRGRM+OBJCT clrb os9 F$FORK os9 F$WAIT os9 F$EXIT endsect
E.7.1. Macro Interactive Assembler Source
ifp1 use defsfile endc prnam type revs name prm prmsize size start mod siz,prnam,type,revs,start,size fcs /testshell/ set prgm+objct set reent+1 rmb 250 rmb 200 fcs /basic09/ fcb $D equ *-prm equ .
equ * leax name,pcr leau prm,pcr ldy #prmsize lda #PRGRM+OBJCT clrb os9 F$FORK os9 F$WAIT
126
Stiahnuť
Reklama