Fedora Linux Support Community & Resources Center
  #1  
Old 29th January 2012, 09:02 AM
Hell Fire Offline
Registered User
 
Join Date: Jan 2012
Location: New York
Posts: 13
windows_xp_2003firefox
Color in x86asm

This is working:
Code:
mov al,13
mov ah,0
int 10

mov ah,0c
mov al,5
mov cx,35
mov dx,112
int 10
But this is not working:
Code:
mov al,13
mov ah,0
int 10

mov ah,0c
mov al,5
mov cx,35
mov dx,112

mov al,6
mov cx,85
mov dx,112

int 10
I want to affix a pink point in pos(35,112).
And i want to affix another colorly point in pos(85,112).
Reply With Quote
  #2  
Old 29th January 2012, 05:27 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,707
linuxfirefox
Re: Color in x86asm

Quote:
Originally Posted by Hell Fire View Post
But this is not working:
Code:
mov al,13
mov ah,0
int 10

mov ah,0c
mov al,5
mov cx,35
mov dx,112
I'm very rusty on assembly, but I suspect you need to run "int 10" here too. It looks like your later code is just over-writing your earlier register assignments before you make the syscall, so only the latter point gets drawn.

Quote:
Code:
mov al,6
mov cx,85
mov dx,112

int 10
Gareth
Reply With Quote
  #3  
Old 29th January 2012, 10:18 PM
Hell Fire Offline
Registered User
 
Join Date: Jan 2012
Location: New York
Posts: 13
windows_xp_2003firefox
Re: Color in x86asm

Thnk u for ur help.Its working.
Reply With Quote
Reply

Tags
color, x86asm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chromium "tooltip" text color is the same as the "tooltip" background color =( Gnodab Using Fedora 1 29th February 2012 06:37 AM
'ls -l | more' with color? Karmaflute Using Fedora 6 19th May 2008 02:14 AM
How to set vi color? youhaodeyi Using Fedora 1 21st April 2008 10:31 PM
16-bit color vs. 32-bit color depth cnayak Using Fedora 6 11th August 2006 03:07 AM
color in vim misbahuddin Using Fedora 1 25th May 2006 10:17 AM


Current GMT-time: 18:33 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat