Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

OpenWatcom 1.7a RC1 released (Announce)

posted by Japheth Homepage, Germany (South), 09.10.2007, 10:46

> OK. What bug?

IIRC it started in the OW C/C++ newsgroup with thread

OW 1.7 Bug (may be major):

#define TYPEFLAG(f, t) (((f)&(0xFFFF0001))==(t))

The disassembly shows it doing

and eax,0x00000001

instead of

and eax,0xFFFF0001


0FC7    8B 44 24 10               mov         eax,dword ptr 0x10[esp]
0FCB    25 01 00 00 00            and         eax,0x00000001


if  (TYPEFLAG(flags, 0x00010001)) {
  .. whatever..
}


IIRC it was introduced by Bart Oldeman doing an adjustment for the 16-bit code generator.

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 252 users online (0 registered, 252 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum