나는 회문 단어를 확인하는 프로그램을 작업 해왔다.Emu8086 프로그래밍
#make_COM#
include emu8-86.inc
org 100h
mov ax, 1000
mov ds, ax
call pthis
db "This program inputs a string and check for the palindromic words." ,0
putc 0dh
putc 0ah
begin:
mov ax, 7000h
mov ds, ax
mov di, 0000
call pthis
db "Enter a string: ",0
mov dx, 10
call GET_STRING
mov cx, dx
putc 0dh
putc 0ah
back:
mov bl, [di]
cmp bl, 00h
jle stop
cmp bl, 41h
jl Not_A_Letter
cmp bl, 5Ah
jle Check_for_length
cmp bl, 61h
jl Not_A_Letter
cmp bl, 7Ah
jle Check_for_length
Not_A_Letter:
putc 0dh
putc 0ah
call pthis
db "You did not enter a valid string", 0
Check_for_length:
ret
입력 문자열의 길이를 어떻게 확인할 수 있는지 궁금합니다.
안녕하세요. SO! 코드를보다 잘 읽을 수 있도록 올바른 코드 형식을 사용하는 것이 좋습니다. –
당신은 이미 무엇을 시도 했습니까? –
인터럽트 21을 사용하여 작동시킬 수 있습니다.하지만 그 일은 사용이 허용되지 않습니다. 그럼 어떻게 해야할지 모르겠다. –