I'm having some trouble getting this program to compile. I am using the DCS toolchain (the one in the sdk) to compile it. I get this error when I try to compile: could not parse expression 'PushGUIStacks' <invalid number>. [zztemp.asm:24]
Any ideas?
Code:
Any ideas?
Code:
; Program Name: GUI Test
; Author: Tanner Hobson
; Version: 0.0
; Date: 7/10/2010
; Written for Doors CS 6.0 and higher (http://dcs.cemetech.net)
.nolist
#include "dcs6.inc"
.list
.org 9D95h
.db $BB,$6D
Init:
xor d
ret
jr Start
.dw Description ;or .dw $0000 if you don't have a description
.db $05,$00 ;always this string
.dw Icon ;or .dw $0000 if you don't have an icon
.dw 00 ;usually .dw $0000 if you don't have or know what an ALE is
Start: ;main routines
ld hl, myWindowStuff
call PushGUIStacks
ld hl, 0
call GUIMouse
Explode:
ret
myWindowStuff:
myGUIRLargeWin:
.dw myGUIRButtonImg-myGUIRLargeWin
.db 1
.db 0FFh,88h,88h,88h,0FFh
.db "I am a test window!",0
myGUIRButtonImg:
.dw myGUIRTextLineIn-myGUIRButtonImg
.db 8
.db 2,2
.dw Explode
.db 1
.db 6
.db 0FFh,0FFh,0FFh,0FFh,0FFh
myGUIRTextLineIn:
.dw myGUIRByteInt-myGUIRTextLineIn
.db 9
.db 10
.db 5
.db 10
.dw 12
.dw 00
.db "Enter Text!",0
myGUIRByteInt:
.dw myWindowStuffEnd-myGUIRByteInt
.db 12
.db 30
.db 30
.db 122
.db 5
.db 200
myWindowStuffEnd:
.db 0FFh,0FFh
Description:
.db "A random test of the GUI",0 ;can be omitted if .dw Description is .dw 0000 above
Icon: ;a 16x16 icon (can be omitted if .dw Icon is .dw 0000 above)
.db %11111111,%11111000
.db %10000000,%00001100
.db %10111100,%00001010
.db %10010010,%00001111
.db %10010010,%01010001
.db %10010010,%10101001
.db %10111100,%01010101
.db %10000000,%00000001
.db %10101010,%10101001
.db %10010101,%01010101
.db %10101010,%10101001
.db %10000000,%00000001
.db %10010101,%01010101
.db %10101010,%10101001
.db %10000000,%00000001
.db %11111111,%11111111