! The corrected version of the array print ! program arrayprt.s. _EXIT = 1 ! seven system call numbers _READ = 3 _WRITE…
BP+Algorithm 源代码
汇集 BP+Algorithm 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
! This file shows how arguments on the command line can be ! used inside a program. ! Arguments are expected after the interpret…
! This program shows how to copy a string, ! including the 0-byte at the end. It is ! one of the programs discussed in 9.8.5. .SE…
! This program is supposed to print a ! vector, but it contains errors, which ! must be corrected first. ! See text section 9.8.4.…
.SECT .TEXT stcstart: ! 1 PUSH mesg1 ! 2 PUSH mesg2 ! 3 CALL strngcpy ! 4 ADD SP,4 ! 5 PUSH 0 ! 6 PUSH 1 ! …
_EXIT = 1 ! 1 _PRINTF = 127 ! 2 .SECT .TEXT ! 3 inpstart: ! 4 MOV BP,SP ! 5 PUSH vec2 ! 6 PUSH vec1 ! 7 MOV…
#include "../syscalnr.h" ! 1 .SECT .TEXT ! 2 vecpstrt: ! 3 MOV BP,SP ! 4 PUSH vec1 ! 5 MOV CX,frmatstr-vec1 …
#include "../syscalnr.h" ! 1 start: MOV DI,str ! 2 PUSH AX ! 3 MOV BP,SP ! 4 PUSH _PUTCHAR ! 5 MOVB AL,'\…
.sect .text push msg1 call stringpr push msg2 call stringpr add sp,4 push 0 push 1 sys stringpr: push cx push si push…
#include "../syscalnr.h" .SECT .TEXT stpstart: ! 1 PUSH msg1 ! 2 CALL stringpr ! 3 PUSH msg2 ! 4 CALL stringpr ! 5 …