I am writing a simple NASM assembler program. I have about 95% of it figured out. However, I am running into one problem I cannot seem to figure out. Hitting ctrl-d is supposed to display a goodbye message and then terminate the program. Here's a skeleton of what I have
Section .bss
Buff resb2
BuffLen equ $-Buff
loop:
; some code
mov ecx, Buff
move edx, BuffLen
; some code
cmp ecx, 0x04
je Exit
jne loop
According to the ASCII chart, ctrl+d is 0x04. I must be missing something simple. Does anyone have any ideas?