Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change
Quote from: 16bitPM on Today at 08:12:57 AMAs for the source code, I just tried to assemble the following examples, shipped with the distribution of CW (unmodified). They are in the BIN directory and of course available on Github.
QuoteYour example code behaves no different. Linked with WL32, single step causes an immediate system reset. Linked with WLINK, it hangs the computer.
Quote from: _japheth on Today at 01:55:44 AMThere's a DOS sub-forum. It's labeled "16-bit", which isn't quite correct for Causeway, but it's the correct place for such topics.
Also, please provide source code - that's a matter of course, IMO. Otherwise, usually only wild guesses are possible...
Assemble with ML, link with "wlink system causeway f sample.obj".
-
Quote from: 16bitPM on December 03, 2024, 11:32:46 PMDoes anyone have experience with the Causeway DOS extender?yes....
QuoteI'm trying to debug some examples in the source distribution. All of them crash the computer the moment I try to single-step the first instruction.
I tried using no drivers except HIMEM.SYS, with EMM386, and with the RDOSUMB driver.
For example:
ML screen32.asm
WL32 screen32.obj
WD /tr=cw screen32.exe
WD starts and shows the code correctly. I press F8 and *crash*.
.386
.model flat
.stack 4096
.data
text1 db "Hello, CW",13,10,'$'
.code
_start:
push ss
pop ds
mov edx, offset text1
mov ah,9
int 21h
mov ah, 4Ch
int 21h
end _start
Quote from: _japheth on November 29, 2024, 05:28:08 AMIt's 16-bit code, because your code also was 16-bit, but it's actually also relevant for 32-bit ( most likely also for 64-bit ).
Quote from: NoCforMe on December 03, 2024, 07:44:39 PMwhat if the hex chars use lowercase "a-f" instead
Quote from: sinsi on December 03, 2024, 07:57:23 PMQuote from: NoCforMe on December 03, 2024, 07:51:10 PMAlso, JJ, something I noticed while coding my comma-delimiting code:You need to use GT_USECRLF as the flags member of the GETTEXTEX structure
The buffer I got from my RichEdit control (using EM_GETTEXTEX) only had carriage returns (0Dh) with no line feeds (0Ah). Is this the way all (ASCII) text in a RichEdit control is encoded? I'm so used to seeing CR-LF that my code broke because I was assuming that's what I would see for line endings.
Quote from: NoCforMe on December 03, 2024, 07:51:10 PMAlso, JJ, something I noticed while coding my comma-delimiting code:You need to use GT_USECRLF as the flags member of the GETTEXTEX structure
The buffer I got from my RichEdit control (using EM_GETTEXTEX) only had carriage returns (0Dh) with no line feeds (0Ah). Is this the way all (ASCII) text in a RichEdit control is encoded? I'm so used to seeing CR-LF that my code broke because I was assuming that's what I would see for line endings.
Quote from: NoCforMe on December 03, 2024, 07:51:10 PMAlso, JJ, something I noticed while coding my comma-delimiting code:
The buffer I got from my RichEdit control (using EM_GETTEXTEX) only had carriage returns (0Dh) with no line feeds (0Ah). Is this the way all (ASCII) text in a RichEdit control is encoded? I'm so used to seeing CR-LF that my code broke because I was assuming that's what I would see for line endings.