[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2021-01-02T21:49:24-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/14847 2021-01-02T21:49:24-05:00 2021-01-02T21:49:24-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39022#p39022 <![CDATA[trumpet socket driver not responding with data]]> http://rubbermallet.org/software/webserv.html because I ran his software as a server and there have been lockups. He mentioned he would offer a new release on his site but never did.

what he did was use "call interruptx" but I'd rather use "call absolute" and only pass in the variables that are necessary as I need a fast program.

Anyway, here is my assembly code:

Code:

PUSH BPPUSH ESPUSH DIPUSH DSPUSH SIMOV BP, SPmov AX,00FFhint 61h ;our chosen interrupt for ntcpdrvMOV BX,[BP+06h+08h]  ;get driver statusmov [BX],AXMOV BX,[BP+08h+08h]  ;tcpip info is at ES:DImov [BX],DIMOV BX,[BP+0Ah+08h] mov [BX],ESPOP SIPOP DSPOP DIPOP ESPOP BPRETF 06h
after compiling, I get machine code which I use in the QBASIC code below:

Code:

'get hex values of each byte of machine code and ram them togetherw$ = "5506571e5689e5b8ff00cd618b5e0e89078b5e10893f8b5e128c075e1f5f075dca0600"'process each byte and rebuild the codecd$ = "": FOR n% = 1 TO LEN(w$) STEP 2: cd$ = cd$ + CHR$(VAL("&H" + MID$(w$, n%, 2))): NEXT'make space for dataDIM d AS STRING * 200CLSr%=77DEF SEG = VARSEG(cd$)sg% = VARSEG(d)of% = VARPTR(d)PRINT sg%; ":"; of% 'print our segment and offset'r% = 77 here.CALL absolute(sg%, of%, r%, SADD(cd$))DEF SEGPRINT sg%; ":"; of%PRINT r% 'but why is sg%,of% and r% unchanged?SYSTEM
I think the core of my problem is the assembly code but I don't know where to start...

Statistics: Posted by mikefromca — Sat Jan 02, 2021 9:49 pm


]]>