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 Language > Re: All is righ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 17 Topic 4954 of 5156
Post > Topic >>

Re: All is right !

by "almas" <almes@[EMAIL PROTECTED] > Apr 19, 2008 at 04:08 PM

Guten Tag / Bonjour / Good morning ( or afternoon )
Danke shön Wolfgang.

I know : a file use 1 cluster or more.
The file will be just a part of a larger one.  so may be i have to care 
about the size.
In fact, i prefer a small size.
I will try the solution with a call.

Best regards
Almas


"Wolfgang Kern" <nowhere@[EMAIL PROTECTED]
> a écrit dans le message de news: 
****cus$183$1@[EMAIL PROTECTED]
>
> I posted a bug with this:
>
>> _____________________
>> mov esi,0082h   ; I see, you assume a space before the parameters
>> ;cmp byte [esi-2],0   ; a few buyes more, but perhaps useful
>> ;jz error             ;if commandline is empty
>> lodsw           ;get both bytes at once
>> call convert    ;modify AL   set carry/NC on error/GOOD
>> jc error
>> shl al,4
>> exch al,ah      ;save first and use second yet
>> call convert    ;call the same again
>> jc error
>> or al,ah
>> mov offset hexa,AL
>> jmp short display_quit
>>
>> convert:
>> ; cmp al,30h    ;I'd put this in
>> ; jc oh_no      ;jc == jb
>>  cmp al,3ah
>>  jc num
>>  cmp al,41h
>>  jc oh_no
> ***
>>  cmp al,46h    *** make this CMP AL,47h (error if >=)
>                     because 46h shall not be an error.
> ***
>>  cmc           ;invert the carry-bit (error if NoCarry >46h)
>>  jc oh_no
>>  sub al,07h
>> num:
>>  sub al,30h
>> oh_no:
>>  ret          ;the last SUB will always result in NoCarry
>>               ;while any error got a set Carry-flag now.
>> error:
>> ; mov dx,errtxt
>> ; jmp short error_quit
>> display_quit:
>>  mov dx,txt
>> error_quit:
>>  mov AH,09
>>  int 21h
>>  ret             ;it will work, even I'd always use:
>> ; mov ax,4c00h   ;because DOS will restore its stack and
>> ; int21h         ;segment-registers on termination then.
>> txt:
>> hexa:
>> errtxt: ...
>> ______________________________
>
> __
> wolfgang
>
>
>
 




 17 Posts in Topic:
All is right !
"almas" <alm  2008-04-14 23:40:35 
Re: All is right !
"almas" <alm  2008-04-15 17:15:44 
Re: All is right !
"Wolfgang Kern"  2008-04-16 17:08:30 
Re: All is right !
"almas" <alm  2008-04-16 22:07:50 
Re: All is right !
"almas" <alm  2008-04-16 23:53:23 
Re: All is right !
"almas" <alm  2008-04-16 23:28:50 
Re: All is right !
"Wolfgang Kern"  2008-04-17 12:54:06 
Re: All is right !
"almas" <alm  2008-04-17 20:52:19 
Re: All is right !
"Wolfgang Kern"  2008-04-18 23:34:34 
Re: All is right !
"Wolfgang Kern"  2008-04-19 11:10:44 
Re: All is right !
"almas" <alm  2008-04-19 16:08:24 
Re: All is right !
"almas" <alm  2008-04-19 21:00:53 
Re: All is right !
"Wolfgang Kern"  2008-04-20 09:38:04 
Re: All is right !
"almas" <alm  2008-04-20 11:11:40 
Re: All is right !
"Wolfgang Kern"  2008-04-21 09:03:12 
Re: All is right !
"almas" <alm  2008-04-21 11:19:41 
Re: All is right !
"Wolfgang Kern"  2008-04-22 12:08:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Oct 7 16:00:24 CDT 2008.