x86 emulator for irrlicht

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

x86 emulator for irrlicht

Post by netpipe »

i have https://github.com/netpipe/IrrlichtDemo ... rr8086tiny

based on

https://github.com/netpipe/IrrlichtDemo ... rlicht2SDL


but when i change the name from .c to .cpp i get a error "too many arguments to function"

Code: Select all

                        regs8[REG_AL] = ~lseek(disk[regs8[REG_DL]], CAST(unsigned)regs16[REG_BP] << 9, 0)
                            ? ((char)i_data0 == 3 ? (int(*)())write : (int(*)())read)(disk[regs8[REG_DL]], mem + SEGREG(REG_ES, REG_BX,), regs16[REG_AX])
                            : 0;
Last edited by netpipe on Fri May 29, 2020 3:30 pm, edited 1 time in total.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: x86 emulator for irrlicht

Post by netpipe »

fixed

if(~fseek(disk[regs8[REG_DL]], CAST(unsigned)regs16[REG_BP] << 9, SEEK_SET))
if((char)i_data0 == 3)
regs8[REG_AL] = fwrite(mem + SEGREG(REG_ES, REG_BX,), 1, regs16[REG_AX], disk[regs8[REG_DL]]);
else
regs8[REG_AL] = fread(mem + SEGREG(REG_ES, REG_BX,), 1, regs16[REG_AX], disk[regs8[REG_DL]]);


working on getting text to render to sdl next
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply