LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-09-2015, 10:04 AM   #16
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081

Quote:
Originally Posted by stf92 View Post
Two: you have three ways to run a modern x86: flat, segmented and real (which is also segmented).
To run in real mode you have to tell the linker to produce a 16 bit exe (though I suspect the Cygwin linker can't produce such a thing).
 
Old 03-09-2015, 02:37 PM   #17
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
It's very simple, ntubski. You can do that in 80286 in protected mode. You specify the segment size in a table, which segment size cannot be greater then 64kB. Thefore displacements, as in MOV AX,OFFSET JOHN, have to be less than the specified limit that is, less than 64kB. If it can be done in 80286 then it can be done in any of the x86 set.
 
Old 03-09-2015, 02:47 PM   #18
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,860
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
So your program works now?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No symbol table is loaded. Use the "file" command. when setting breakpoints hjc Linux - Newbie 4 04-05-2018 07:36 AM
gdb: a symbol to represent the current line. stf92 Programming 2 08-13-2011 07:09 PM
Library can not be loaded as symbol is missing alaios Linux - Software 16 08-13-2010 04:16 AM
No symbol/function name appears in GDB output and it prints ?? instead jaianand Linux - Newbie 3 05-15-2009 04:59 PM
"No symbol table is loaded." when ddd is remote debugging with gdbserver powah Linux - Software 1 01-18-2008 09:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration