Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: Assemblers
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 20 Topic 4564 of 4729
Post > Topic >>

Re: Assemblers

by Frank Kotler <spamtrap@[EMAIL PROTECTED] > Mar 14, 2008 at 05:32 PM

Wolfgang Kern wrote:

....
> Good idea, but be aware to find some different interpretations of
> register-numbers.
> ie: Herbert uses a functional logic for ordering: eax,edx,..
> while I use the given opcode-patterns: eax,ecx,edx... to match PUSHAD

Yeah... the registers *have* real names - 3-bit numbers - which 
*almost*, but not quite, match Herbert's scheme.

I couldn't resist adding this. Rosario (I think that's his right name) 
just posted this to a.l.a.

org  100h
section .text
start:
       ax=13h;     int  10h;   /* switch to mode 13h
       ax=0A000h; es=ax;  /*  load es with our "graphics screen" seg
       di^=di; al=0; /*  start at upper left [di=0] color 0 [al=0]
       /*  draw the lines
..1:   cx=256;             /* ++al is next color,
                           /* ++di is next position
..2:   [es:di]=al;  ++al,di; --cx; !#.2;
       /* after 256 incs, al is color 0 again
       /*  al=0; /* so skip this
        di+=_320-256_;  di<_320 * 199 + 256 _#.1
        ah=0; int 16h;          /* wait for a key
        ax=3; int 10h;          /* back to text mode
        ret                     /* back to dos

Believe it or not, this assembles with Nasm... *after* passing through 
Rosario's "preasm.exe" (I think I've got his code, if anyone actually 
wants to assemble this). He finds this syntax much superior. I think I 
mentioned... tastes differ!

Best,
Frank
 




 20 Posts in Topic:
Assemblers
Terence <spamtrap@[EM  2008-03-11 15:04:37 
Re: Assemblers
santosh <spamtrap@[EM  2008-03-12 04:57:52 
Re: Assemblers
NoSpam@[EMAIL PROTECTED]   2008-03-12 13:08:00 
Re: Assemblers
"Wolfgang Kern"  2008-03-12 13:26:33 
Re: Assemblers
"Maarten Kronenburg&  2008-03-12 16:50:58 
Re: Assemblers
Terence <spamtrap@[EM  2008-03-12 16:10:45 
Re: Assemblers
Frank Kotler <spamtra  2008-03-13 12:19:33 
Re: Assemblers
santosh <spamtrap@[EM  2008-03-13 16:01:25 
Re: Assemblers
"Wolfgang Kern"  2008-03-14 12:49:58 
Re: Assemblers
Frank Kotler <spamtra  2008-03-14 17:32:29 
Re: Assemblers
"Wolfgang Kern"  2008-03-15 12:33:19 
Re: Assemblers
Phat Sam <spamtrap@[E  2008-03-13 01:06:21 
Re: Assemblers
Terence <spamtrap@[EM  2008-03-14 15:25:26 
Re: Assemblers
Terence <spamtrap@[EM  2008-03-14 16:01:03 
Re: Assemblers
Terence <spamtrap@[EM  2008-03-14 15:56:07 
Re: Assemblers
"Wolfgang Kern"  2008-03-15 12:47:35 
Re: Assemblers
Terence <spamtrap@[EM  2008-03-14 16:09:59 
Re: Assemblers
Terence <spamtrap@[EM  2008-03-14 15:51:47 
Re: Assemblers
nbaker2328 <spamtrap@[  2008-03-15 22:28:37 
Re: Assemblers
Rugxulo <spamtrap@[EM  2008-03-20 13:32:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 14:50:40 CDT 2008.