Search found 131 matches

by Nexinarus
Jun 01, 2005 8:58
Forum: Sources, Examples, Tips and Tricks
Topic: Compiler version control
Replies: 7
Views: 6065

Nice. Is it possible to determine if you are compiling with FB Dos/Windows/Linux ? It would be nice, if i was to write dos-specific code (dont want windows/linux users using a dos-only far poke or something)
by Nexinarus
Jun 01, 2005 8:56
Forum: General
Topic: parsing math expressions
Replies: 7
Views: 5262

marzec wrote a nice math parser already at bad-logic forums, it seems quite functional (and expandable).
by Nexinarus
May 31, 2005 23:25
Forum: General
Topic: feature request, and a site question
Replies: 4
Views: 3990

Oh right. I just assumed you could tell a prototype was C function because it would be decalred with cdecl.
by Nexinarus
May 31, 2005 23:10
Forum: General
Topic: parameter type mismatch (integer -> byte)
Replies: 14
Views: 7557

Ah thanks PeterHarder/v1ctor, never thought about the byref/byval idea. Works good now, silly me.
by Nexinarus
May 31, 2005 21:15
Forum: General
Topic: parameter type mismatch (integer -> byte)
Replies: 14
Views: 7557

parameter type mismatch (integer -> byte)

edit: I think freebasic should (by default) pass an integer to a sub when it expects a byte with no error message (by sending the lower byte). Joakim just notes to me that theres a CBYTE() function for type casting, which i didnt know about heh. Like this shouldnt complain: sub mysub (a as byte) '.....
by Nexinarus
May 31, 2005 21:01
Forum: DOS
Topic: accessing video memory
Replies: 10
Views: 8642

Thanks man. Here's some working code incase anyone is interested: #include "dos/go32.bi" #include "dos/sys/farptr.bi" const vid_mem = &hb8000 sub put_char(col, row, character as byte, attribute as byte) _farpokeb( _dos_ds, vid_mem + 2*col+0 + 160*row, character ) _farpokeb( _...
by Nexinarus
May 31, 2005 20:55
Forum: General
Topic: feature request, and a site question
Replies: 4
Views: 3990

Ah nice. How about support Basic type returns first, then c :p ?
by Nexinarus
May 31, 2005 11:02
Forum: General
Topic: nasty
Replies: 5
Views: 4969

nasty

took me a while to see this, but this is an infinite loop: dim x as ubyte for x = 0 to 255 print x; next First I thought it's a bug, but I do see now why this happens. As x goes to 255 and increases the count from 255 to 0, and thats not more than 255 so it continues wrapping. I guess I will use an ...
by Nexinarus
May 31, 2005 7:55
Forum: General
Topic: feature request, and a site question
Replies: 4
Views: 3990

feature request, and a site question

Would be nice if functions could return type variables. Extremely useful. Like so: function my_func(...) as my_type dim x as my_type ... return x end function Also vic, I posted this in the sourceforge tracker 'feature request' part but I figured you'd never check it. Why is there no link from freeb...
by Nexinarus
May 31, 2005 6:41
Forum: DOS
Topic: accessing video memory
Replies: 10
Views: 8642

accessing video memory

Hey im trying to access the video memory of text-mode. I tried like the old method with dos 16-bit: dim vid as integer ptr vid = &hb8000 print *(vid+0) but i get this error report: > Executing: C:\Program Files\ConTEXT\ConExec.exe "C:\code\fbc\run.bat" "C:\code\fbc\tests\ascii&quo...
by Nexinarus
May 28, 2005 21:16
Forum: Archive
Topic: a small preview
Replies: 29
Views: 19247

No i dont want a playable demo, i want a playable full game when it's done ;).

Looking nice man. Did you draw those tiles? I think this will be around the second (is it?) RPG for FreeBasic.