Search found 100 matches

by fatman2021
Nov 04, 2018 20:43
Forum: DOS
Topic: Custom C64 eumlator crashes in FreeDOS
Replies: 10
Views: 249

Re: Custom C64 eumlator crashes in FreeDOS

I changed lines 59 through 64 as follows: as any ptr vram (&H0000FFFF) ' Video Ram as ubyte ram (&H0000FFFF) ' System Ram as ubyte kernal(&H00001FFF) ' OS as ubyte basic (&H00001FFF) ' Basic as ubyte char (&H000007FF) ' Font as ubyte col (&H000003E7) ' color triples Now it lo...
by fatman2021
Nov 04, 2018 19:08
Forum: DOS
Topic: Custom C64 eumlator crashes in FreeDOS
Replies: 10
Views: 249

Re: Custom C64 eumlator crashes in FreeDOS

Does the stack size make a difference? I wouldn't have expected it to, since it shouldn't be allocating on the stack. If allocating 560MB works, then guess other things to try then are: - try smaller amounts of memory. Is there a point below which it succeeds? - print something after the two 'new' ...
by fatman2021
Nov 04, 2018 18:09
Forum: DOS
Topic: Custom C64 eumlator crashes in FreeDOS
Replies: 10
Views: 249

Re: Custom C64 eumlator crashes in FreeDOS

counting_pine wrote:Try the following:

Code: Select all

type T
    a(560e6) as byte
end type
var p = new T
print p
delete p
If this code fails, there's not much you can do.


It works when using the -t command line option.

-t Set .exe stack size in kbytes, default: 1024 (win32/dos)
by fatman2021
Nov 04, 2018 15:47
Forum: DOS
Topic: Custom C64 eumlator crashes in FreeDOS
Replies: 10
Views: 249

Re: Custom C64 eumlator crashes in FreeDOS

D.J.Peters wrote:Why do you allocate 560 MB ?

Joshy


Most modern computers can access at least 512MB of RAM(for embedded systems). Also 32-bit protected mode programs should be able to address up to 4GB of RAM.
by fatman2021
Nov 04, 2018 2:10
Forum: DOS
Topic: Custom C64 eumlator crashes in FreeDOS
Replies: 10
Views: 249

Re: Custom C64 eumlator crashes in FreeDOS

D.J.Peters wrote:it's a crime what you do with my elegant code ;-)

Your version locks up in both FreeDOS and DOSBOX....
by fatman2021
Nov 04, 2018 0:49
Forum: DOS
Topic: Custom C64 eumlator crashes in FreeDOS
Replies: 10
Views: 249

Re: Custom C64 eumlator crashes in FreeDOS

Test programs 10 a$ = "press <cr> to exit." 20 adr = 679: rem gpu address 30 gosub 200: X = 8: y=8 40 rem display message 50 for a=1 to len(a$) 60 poke adr+4,x: poke adr+8,y 70 poke adr+9,asc(mid$(a$,a,1)) 80 for b=10 to 17 90 poke adr+b,255 100 next b 110 poke adr, 5 120 x=x+9 130 next a...
by fatman2021
Nov 03, 2018 16:02
Forum: DOS
Topic: Custom C64 eumlator crashes in FreeDOS
Replies: 10
Views: 249

Custom C64 eumlator crashes in FreeDOS

Program compiles but crashes when executed. It works when compiles end executed in Linux.

https://raw.githubusercontent.com/fatman2021/E6510CPU/master/E6510CPU.bas

Image
by fatman2021
Jun 14, 2018 21:32
Forum: General
Topic: Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'
Replies: 11
Views: 488

Re: Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'

counting_pine wrote:I'm not familiar enough with the LISP library (is it coderJeff's?) to know how you'd pass pointers around to functions.


Yes. It is coderJeffs's LISP library.
by fatman2021
Jun 14, 2018 20:22
Forum: General
Topic: Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'
Replies: 11
Views: 488

Re: Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'

Are you setting a graphics screen before bload? screen 20,32 or something similar Yes using LISP dim lsp AS LispModule, expr as string BIND_FUNC( lsp.functions, "setvideo", SetVideo) BIND_FUNC( lsp.functions, "setpixel", SetPixel) BIND_FUNC( lsp.functions, "setline", S...
by fatman2021
Jun 14, 2018 18:49
Forum: General
Topic: Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'
Replies: 11
Views: 488

Re: Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'

fxm wrote:Can you insert in your code (for example just before the Bload line):
#Print Typeof(p1)
and post the compiler output (the type of p1) ?


Expected End-of-Line, found 'Typeof' in 'Print Typeof(p1)'
by fatman2021
Jun 14, 2018 17:08
Forum: General
Topic: Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'
Replies: 11
Views: 488

Re: Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'

fxm wrote:
fatman2021 wrote:*p1 is a pointer to a string

If ' *p1 ' is really a pointer to a string, then try with ' **p1 ' !


Expected pointer, before ',' in 'Bload **p1, cint(*p2), cint(*p3)'
by fatman2021
Jun 14, 2018 16:23
Forum: General
Topic: new complete FB version ?
Replies: 34
Views: 1827

Re: new complete FB version ?

lizard wrote:4) when santa becomes shaved



Image
by fatman2021
Jun 14, 2018 16:09
Forum: General
Topic: Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'
Replies: 11
Views: 488

Type mismatch, at parameter 1 of BLOAD() in 'Bload *p1, cint(*p2), cint(*p3)'

*p1 is a pointer to a string define_lisp_function(LoadImage, args) _OBJ(p1) = _EVAL(_CAR(args)) _OBJ(p2) = _EVAL(_CAR(_CDR(args))) _OBJ(p3) = _EVAL(_CAR(_CDR(_CDR(args)))) _OBJ(res) = any if( _LENGTH(args) < 1) then _RAISEERROR(LISP_ERR_TOO_FEW_ARGUMENTS) end if if(_IS_STRING(p1)) then res = _NEW(OB...
by fatman2021
May 30, 2018 17:06
Forum: Community Discussion
Topic: Suspicious pointer assignment
Replies: 4
Views: 242

Re: Suspicious pointer assignment

#include once "fbgfx.bi" #include once "lisp.bi" #include once "lisp_runtime.bi" using FB namespace LISP define_lisp_function( SetVideo, args ) _OBJ(p1) = _EVAL(_CAR(args)) _OBJ(res) = any if(_LENGTH(args) < 1) then _RAISEERROR(LISP_ERR_TOO_FEW_ARGUMENTS) end if if(_IS...

Go to advanced search