Prev: on goto
Next: HLA v2.9 is now available on Webster
From: Robert Redelmeier on 28 Apr 2010 20:47 In alt.lang.asm Nathan Baker <nathancbaker(a)gmail.com> wrote in part: > "Robert Redelmeier" <redelm(a)ev1.net.invalid> wrote in message > news:hr8ak7$vhk$1(a)speranza.aioe.org... >> >> modes. Less if you are desparately counting cycles on an 8088 >> (jmp saves a jmp after the ret). > > Don't you mean that a 'jmp' saves a 'ret' after a 'ret'?? No. This is the code I'm contemplating: # other startup code keyloop: # wait/get keycode, error check and adjust jmp [ebx] A_code: # instructions to execute cmd "A" jmp keyloop B_code: ....... > > For nested calls, the final call can be replaced by a jmp. E.g.: SOunds like that'll misalign the ESP stack and the hw call/ret stack. -- Robert |