I m在使用玩具系统方面遇到麻烦,它从I32组件方案中呼吁采用关于含水层的系统。 如何确定缓冲?
这是我迄今所做工作的相关部分:
movl $(SYS_read), %eax
movl $(STDIN), %ebx
movl BUFFADDR, %ecx
movl 2, %edx
int $0x80
movl $eax, $ebp // number of read bytes
where SYS_read and STDIN are defined at the beginning. Where is the correct place to set up the buffer? (BUFFADDR in the pasted code).
Are there any I/O libraries for IA32 Assembler? Or is that the easiest way to read a value from Stdin? I couldn t find a working example performing such an operation, I hope someone can help.