Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,116 of 4,675    |
|    Richmond to All    |
|    Re: sys_read from stdin    |
|    28 Nov 17 16:36:55    |
      From: p1299721@nospicedham.protonmail.com              I messed up again. 'charbuffer' is actually used by PWORD too. :(              Here is my final code. I tried all sorts of things.              GCHAR: push rax        push rbx        push rcx        push rdx        mov rsi, charbuffer_in ; buffer = address t        mov rcx,rsi        mov rdx, 0x1 ; number of bytes to read        mov rax, 0x0 ; number for sys_read        mov rbx, 0x0 ; From stdin        mov rdi,rbx        syscall        MSPRINT "Byte read is "        MOV AL,[charbuffer_in]        MOV AH,0        CALL PWORD        pop rdx        pop rcx        pop rbx        pop rax        RET                            --       ~              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca