gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Help with Dragon Basic compiler!

#28844 - bob23 - Sun Nov 07, 2004 4:43 pm

I made a game in Dragon Basic and I cant compile it can some one help me?
_________________
New to GBA programing
Vist my website @ http://www.freewebs.com/bobgames/index.htm

#30028 - micster - Sat Nov 27, 2004 8:49 pm

i to would like to know this

#30040 - zazery - Sat Nov 27, 2004 10:37 pm

If you provide more information I'm sure someone will be able to help you. Why not post the error messages you get, the steps you've taken to try to fix the problem and the lines of source code related to the problem.

#30042 - micster - Sat Nov 27, 2004 10:53 pm

i get this message-

Dragon BASIC, TIN ver 1.3.8
Copyright (c) 2003 by Jeff Massung. All rights reserved.

CORE.DBC [error] line 10: Unknown compiler directive? REQUIRES

#30051 - zazery - Sat Nov 27, 2004 11:40 pm

I don't use Dragon basic however I think it would be more beneficial if you posted the code of core.dbc. (If it's long, just the related code to line 10) I thought Dragon BASIC also had tech support, am I wrong?

#30052 - micster - Sat Nov 27, 2004 11:46 pm

core.dbc=

Code:
;;; CORE.DBC
;;;
;;; Compiles required TIN source for all CORE routines
;;; that are needed for Dragon BASIC to run. This file
;;; should be included with every program.
;;;
;;; Copyright (c) 2003 by Jeff Massung
;;; All rights reserved.

#REQUIRES "CORE.F"

; Debugging function - works on VGBA only!
PROTOTYPE SUB       LOG(string$)

; CORE memory functions
PROTOTYPE FUNCTION   PEEK(address)
PROTOTYPE SUB      POKE(address,n)

; Memory routines
PROTOTYPE SUB       COPY(address,source,bytes)
PROTOTYPE SUB       ERASE(address,bytes)

; Graphics mode routines
PROTOTYPE SUB       GRAPHICS(mode,sprites)
PROTOTYPE SUB       VBLANK
PROTOTYPE FUNCTION  SCANLINE

#30056 - zazery - Sun Nov 28, 2004 12:37 am

Have you managed to compile any code for it? It appers that you cannot use the REQUIRES directive. From the looks of it, this code was written by Dragon BASIC and not you so there is some problem with the compiler itself if REQUIRES should be a directive.

I took a quick look at the website for Dragon BASIC and found some files you might want to try to replace the ones you have.

Click Here

If not you can try the IRC chat they have, contact jma or wait for someone other than me to respond to your post.

#30508 - Sledge - Wed Dec 01, 2004 7:15 pm

http://forum.gbadev.org/viewtopic.php?t=4483