#make_bin# ; BIN is plain binary format similar to .com format, but not limited to 1 segment; ; All values between # are directives, these values are saved into a separate .binf file. ; Before loading .bin file emulator reads .binf file with the same file name. ; All directives are optional, if you don't need them, delete them. ; set loading address, .bin file will be loaded to this address: #LOAD_SEGMENT=0500h# #LOAD_OFFSET=0000h# ; set entry point: #CS=0500h# ; same as loading segment #IP=0000h# ; same as loading offset ; set segment registers #DS=0500h# ; same as loading segment #ES=0500h# ; same as loading segment ; set stack #SS=0500h# ; same as loading segment #SP=FFFEh# ; set to top of loading segment ; set general registers (optional) #AX=0000h# #BX=0000h# #CX=0000h# #DX=0000h# #SI=0000h# #DI=0000h# #BP=0000h# MOV [100h], 10H MOV [101h], 13H MOV [102h], 7H MOV [103h], 19H MOV [104h], 56H MOV [105h], 25H MOV [106h], 17H mov si,100h mov cl,00h mov dx,106h mov al,[si] etiq0:inc si mov bl,[si] cmp al,bl js etiq mov al,bl cmp si,dx jnz etiq0 jmp fin etiq:mov cl,al cmp si,dx jnz etiq0 fin:mov [110h],cl HLT ; halt!