NASM Forum > Using NASM

How To do a loop in NASM?

<< < (3/3)

fredericopissarra:
An example with loops. A little program which calculates the successor of an integer.

Frank Kotler:
That's a gem, Frederico! Thank you!

Best,
Frank

Frank Kotler:

--- Quote ---I'm sorry If I sound rude but to be honest reading from that manual is boring and it looks kind of stale. if you have any video sources that teach assembly for real beginners I'd be grateful.

--- End quote ---
Video? What would video show?
l
lo
loo
loop
Like  that?
With Debs screwing up "mul" and me screwing up "sys_exit" I can see we might need a new approach. but I don't see video helping. Maybe I don't know what you have in mind. Can you explain?

Best,
Frank

CaRooR:
no I clearly meant someone writing code in assembly and teaching/explaining each bit of code they write so that noobies can learn and practice it themselves.

debs3759:
You might find my boot sector code useful in that case, as I fully comment everything I write (I want to be sure I understand what I write if I need to modify something 20 years down the line). My old CPUID code might be useful as well. asm and include files are in this rar file

To find an example of a loop, search for "Test_CT" or "KBC_Wait" in cpu_id.asm

Navigation

[0] Message Index

[*] Previous page

Go to full version