video
Posted: Tue Sep 06, 2005 2:27 am
hi,
after finding help in many places I decieded to write here.
http://cage2.republika.pl/pmode_18.tar
That's my code in nasm, it boots up from floppy, it has macros to draw points, lines, rectangulars, all in 32 bit pmode. All in 13h mode 320x200 set in 16 bit real mode, before seting pmode. To emulate x86 machine I use bochs 2.2, cvs from 28 may 2005. My specs are Athlon 2000+ 256MB@266, ascrock k7vt4a pro, MSI GeForce 3 ti 200. In this archive in file MAIN.S, when I try:
line 160, 100, 200, 100, 15
line_vert 160, 60, 100, 15
line 160, 100, 140, 120, 15
line 140, 120, 180, 120, 15
It is OK, run in bochs, does not run in real world (something wrong with my pc, because on other pc on which I tested it yesterday it works very well),
but when I add:
line 160, 100, 200, 100, 15
line_vert 160, 60, 100, 15
line 160, 100, 140, 120, 15
line 140, 120, 180, 120, 15
line 160, 100, 120, 60, 14
this... I get this:
00001695024i[CPU ] BxError: instruction with op1=0xff
00001695024i[CPU ] mod was c0, nnn was 7, rm was 7
00001695024i[CPU ] WARNING: Encountered an unknown instruction (signalling illegal instruction)
00001695024e[CPU ] exception(): 3rd (13) exception with no resolution, shutdown status is 00h, resetting
And it doesn't work both in bochs in real world.
after finding help in many places I decieded to write here.
http://cage2.republika.pl/pmode_18.tar
That's my code in nasm, it boots up from floppy, it has macros to draw points, lines, rectangulars, all in 32 bit pmode. All in 13h mode 320x200 set in 16 bit real mode, before seting pmode. To emulate x86 machine I use bochs 2.2, cvs from 28 may 2005. My specs are Athlon 2000+ 256MB@266, ascrock k7vt4a pro, MSI GeForce 3 ti 200. In this archive in file MAIN.S, when I try:
line 160, 100, 200, 100, 15
line_vert 160, 60, 100, 15
line 160, 100, 140, 120, 15
line 140, 120, 180, 120, 15
It is OK, run in bochs, does not run in real world (something wrong with my pc, because on other pc on which I tested it yesterday it works very well),
but when I add:
line 160, 100, 200, 100, 15
line_vert 160, 60, 100, 15
line 160, 100, 140, 120, 15
line 140, 120, 180, 120, 15
line 160, 100, 120, 60, 14
this... I get this:
00001695024i[CPU ] BxError: instruction with op1=0xff
00001695024i[CPU ] mod was c0, nnn was 7, rm was 7
00001695024i[CPU ] WARNING: Encountered an unknown instruction (signalling illegal instruction)
00001695024e[CPU ] exception(): 3rd (13) exception with no resolution, shutdown status is 00h, resetting
And it doesn't work both in bochs in real world.