Calculator Community > ASM

Sprites ?

<< < (2/4) > >>

calc84maniac:
Sorry, can you rephrase that? I don't want to try decoding that message...

tama:
er...
ok I'll try

I want to stop a program for a few microseconds...

"Halt" don't seem to work...
I also tried "nop" but it does nothing

calc84maniac:
nop waits 4 clock cycles. That's 4/6000000 seconds.

halt waits for an interrupt to trigger, which takes various amounts of time, depending on when the last interrupt triggered. If interrupts are disabled, then don't try halt. ;)

tama:
so how can I do ?
do a loop ?

Fallen Ghost:
well, depends on how many milliseconds you want to shove off.

nop stops for 1/1 500 000 of a second (exactly)
halt stops for about 1/120 or 1/140 of a second if you haven't messed up with interrupts (ei, di, port 3 or port 4).

To obtain a good timing, I suggest using a loop doing a bunch of nop instructions, saving the most possible bytes (we actually want to lose time, so why not save space)

c1-->CODE ec1
 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version