flat assembler
Message board for the users of flat assembler.

Index > Main > Why do SALC exist?

Author
Thread Post new topic Reply to topic
l4m2



Joined: 15 Jan 2015
Posts: 674
l4m2 19 Feb 2015, 10:10
Code:
db 0D6H    

it do the job just as
Code:
SBB AL,AL    
.So why is it there?[/code]
Post 19 Feb 2015, 10:10
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20062
Location: In your JS exploiting you and your system
revolution 19 Feb 2015, 10:57
Ask Intel. They invented it.

But anyhow the flags are altered by SBB so it isn't the same.
Post 19 Feb 2015, 10:57
View user's profile Send private message Visit poster's website Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 215
Location: %x
badc0de02 19 Feb 2015, 10:58
i think
Code:
SALC     
is a method how to check if carry flag set idk
while
Code:
 sbb al,al    
needs 2 bytes instead of only one
Post 19 Feb 2015, 10:58
View user's profile Send private message Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 129
Location: Russian Federation, Irkutsk
Mikl___ 20 Feb 2015, 01:27
Hi, l4m2 !
because the SALC is a rudiment of command set intel 8080/8085
Post 20 Feb 2015, 01:27
View user's profile Send private message Visit poster's website Reply with quote
l4m2



Joined: 15 Jan 2015
Posts: 674
l4m2 27 Mar 2015, 14:08
Mikl___ wrote:
Hi, l4m2 !
because the SALC is a rudiment of command set intel 8080/8085
So do you think it a good idea to assemble "SETC AL" into it?
Post 27 Mar 2015, 14:08
View user's profile Send private message Reply with quote
l4m2



Joined: 15 Jan 2015
Posts: 674
l4m2 27 Mar 2015, 14:32
I meant any time 0D6H is used for other things as $4x
Post 27 Mar 2015, 14:32
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.