0

Help guys (assembly)

How can i write in assembly a program that reads positive numbers and prints major and minor numbers on console, input num ends when user enters 0.

27th Mar 2020, 4:11 PM
Ivan Ferro
Ivan Ferro - avatar
1 Answer
0
Depends on your OS ( windows, linux ), CPU ( probably x86 ) and which assembler ( nasm, masm ) you're using. On linux you could use syscalls. On windows you'll have to import C function like scanf and printf because syscalls are undocumented. On DOS you can use interrupts. Maybe you could provide some more information on that? Maybe you have some code already?
27th Mar 2020, 4:39 PM
Dennis
Dennis - avatar