I am a beginner in Assembly and just receievd an assignment on this area with one procedure look like this, could someone be able to tell me how to implement it? I have absloutly no idea. Thank you!
AppendBinary PROC
; append the binary representation of the accumulator contents to a string
; with the write starting at address DS:SI
; pre: BX specifies whether AL or AX is to be output (if BX=0 output AL otherwise AX)
; post: the binary representation of the value in the specified accumulator
; has been appended (with MSB leftmost) starting at the address DS:SI
; AND DS:SI points to the char immediately following the appended chars
; AND all registers (excluding SI) are preserved
; ========================================================================
; About 20 instructions in this procedure
; ========================================================================
ret
AppendBinary ENDP
AppendBinary PROC
; append the binary representation of the accumulator contents to a string
; with the write starting at address DS:SI
; pre: BX specifies whether AL or AX is to be output (if BX=0 output AL otherwise AX)
; post: the binary representation of the value in the specified accumulator
; has been appended (with MSB leftmost) starting at the address DS:SI
; AND DS:SI points to the char immediately following the appended chars
; AND all registers (excluding SI) are preserved
; ========================================================================
; About 20 instructions in this procedure
; ========================================================================
ret
AppendBinary ENDP