Project 16 (Developers)
> I barely have time to study pascal!
> making C code out of that pascal code will help me tremendously
>
> i wish there where some C examples.... ><
I only vaguely remember that some famous DOS tutorials were translated into C. I can't remember if it was Denthor or Telemachos or whatever. (It's probably Turbo C, but that's "close enough" to OpenWatcom, or at least closer than Pascal.)
http://gnjilux.cc.fer.hr/pub/msdos/programming/docs/00index.txt
pxdtut1.zip PPT #1 - Doom-walls by Telemachos^Peroxide
pxdtut2.zip PPT #2 - EMS-Handling by Telemachos^Peroxide
pxdtut3.zip PPT #3 - 3D vector engine part 1. 3D projections (pascal)
pxdtut4.zip PPT #4 - 3D vector engine part 2. EnvironMap,Gouraud,Phong,Texture (pascal)
pxdtut5.zip PPT #5 - SVGA using VESA 1.2. SVGA memory model, bankswitching (pascal)
pxdtut6.zip PPT #6 - Interrupts, Keyboard handler, PIT clock chip (pascal)
pxdtut7.zip PPT #7 - Raycasting, Wolfenstein engine (pascal)
...
tutorc.zip Denthor's Asphyxia VGA trainers translated into C - 2,4-16
P.S. It's still a good idea to look at actual games and see what they do. Perhaps old QBasic games (or even FreeBASIC), there were tons of those, or something popular that was open-sourced like Descent or Doom or Quake or Ken's Labyrinth or Duke Nukem 3D or R.O.T.T. Heck, even DJGPP's Allegro lib has tons of VGA and VESA support and lots of examples. I know 386 isn't your target, but you can learn a lot from there.
Complete thread:
- Project 16 - sparky4, 14.05.2014, 17:34 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Project 16 - Guti, 16.05.2014, 16:47
- Project 16 - sparky4, 16.05.2014, 18:08
- Project 16 - sparky4, 16.05.2014, 18:15
- Project 16 - Khusraw, 16.05.2014, 18:54
- Project 16 - sparky4, 16.05.2014, 19:13
- Project 16 - Khusraw, 16.05.2014, 21:56
- Project 16 - sparky4, 16.05.2014, 22:02
- Project 16 - sparky4, 17.05.2014, 00:57
- Project 16 - glennmcc, 17.05.2014, 22:33
- Project 16 - sparky4, 17.05.2014, 22:37
- Project 16 - sparky4, 17.05.2014, 22:46
- Project 16 - sparky4, 18.05.2014, 03:50
- Project 16 - glennmcc, 17.05.2014, 22:33
- Project 16 - Khusraw, 16.05.2014, 21:56
- Project 16 - sparky4, 16.05.2014, 19:13
- Project 16 - Rugxulo, 25.05.2014, 23:57
- Project 16 - sparky4, 28.05.2014, 23:43
- Project 16 - sparky4, 29.05.2014, 19:33
- Project 16 - Rugxulo, 30.05.2014, 02:01
- Project 16 - sparky4, 12.06.2014, 18:04
- Project 16 - Rugxulo, 30.05.2014, 02:01
- Project 16 - Khusraw, 16.05.2014, 18:54
- Project 16 - Guti, 16.05.2014, 16:47
Mix view