C--: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m C MinusMinus moved to C-- |
Fixed the headers |
||
Line 1:
This page is about Sphinx Full C--, not about [http://www.cminusminus.org/index.html C--], the portable assembly language.
Sphinx Full C-- language is in between the [[C|C language]] and x86-assembly. It is a very neat computer language and the Shinx Full C-- compiler allows to produce (and mix) 16 bit and 32 bit code for real and protected modes.
* good for writing real mode x86 operating systems;
* good for writing TSR programs for DOS
Line 14 ⟶ 13:
* relatively easy to port from and to C-with-assembly.
* not portable; it is very closely tied to the x86 assembly;
* is developed by few developers, the community is small; has less users than gcc so more may have more bugs;
Line 28 ⟶ 27:
Early versions of [[User:Adek336|panaLiX]] used Sphinx Full C--.
byte x = 0b01001;
word y;
Line 34 ⟶ 33:
#define THIS_A_DEFINITION 123
dword old0x21 = {};
interrupt int0x21()
Line 79 ⟶ 78:
ESBYTE[0x1b8005]= 127;
void PRINTF()
{
Line 135 ⟶ 134:
}
byte readDisk(byte drive, head, sector, track, howmany; word segm, offs)
int err;
Line 242 ⟶ 241:
}
...
?code32 false
Line 283 ⟶ 282:
@setup_pic(0x20, 0x28);
...
These snippets may seem a bit spaghetti code, but not because of some language defficiency but because I didn't look very far for them snippets.
* [http://c--sphinx.narod.ru/indexe.htm the compilers website]
|