I am receiving an error from the following block of code. The errors say that I have a syntax error on lines 12 – 16 (which is when I assign the DS values). I tried to find examples on how to properly assign the DS but was unable to find any online for the assembler 8088 (DOS bases). The example below is designed to sum 5 bytes and output the result…
! Simple “adds the following five bytes” program
! 25H, 12H, 15H, 1F and 2B
_EXIT = 1 ! 1
_WRITE = 4 ! 2
_STDOUT = 1 ! 3
.SECT .TEXT ! 4
set_CxAx:
MOV CX,5
MOV AX,0×0
set_ds:
DS:0300 = 0×25
DS:0301 = 0×12
DS:0302 = 0×15
DS:0303 = 0×1F
DS:0304 = 0×2B
LoopStart:
MOV BX,DS
ADD AX,BX
INC BX
DEC CX
JNZ LoopStart
PUSH AX
PUSH _STDOUT
PUSH _WRITE
PUSH _EXIT
SYS ! 16
.SECT .DATA
.SECT .BSS