如何在只使用新行代碼的情況下打印新行3次儘管輸入了相同的代碼3次 include emu8086.inc
ORG 100h
PRINT 'ENTER THREE INITIALS: '
MOV AH,1
INT 21H
MOV BL,AL
INT 21H
MOV CL,AL
INT 21H
MOV BH,AL
我目前堅持從組合問題得到了答案。我的basecase工作得很好。我認爲問題在於評估組合(n-1,k),然後評估組合(n-1,k-1)。 這裏是我的代碼:n和k是從用戶輸入。 sub esp, 2
push word[n]
push word[k]
call combi
pop word[ans] ;store yung combi value sa ans
;convert to as
我有這樣的代碼,是應該打印一個字符串的第一個字母: mov bx, message ; Move the address of the message to bx
add bx, 0x7c00 ; Adding the padding of bootsector to bx
mov al, [bx] ; Move the value at the address in bx to al