Welcome, Guest. Please login or register.

Author Topic: AmiBlitz (Blitz Basic) "Type not found" error  (Read 3099 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
AmiBlitz (Blitz Basic) "Type not found" error
« on: May 24, 2006, 06:46:09 PM »
I'm trying to compile this example in AmiBlitz:

;-- Parallel port Blitz example..
;-- No more stupid Poking/peeking...
;-- remember to use all.res !
NEWTYPE .byte
b.b
End NEWTYPE

*PPort_Dir.byte = $BFE301
*PPort_Bits.byte = $BFE101

If AllocMiscResource_(#MR_PARALLELPORT,"MyAppName") = 0

*PPort_Dir\b= %11111111 ; set all bits direction to output

;-- Ready to rock and roll..

*PPort_Bits\b=%01010101 ; set the little buggers

FreeMiscResource_ #MR_PARALLELPORT
Else
NPrint "Crap, somethings already got the port :("
EndIf

End


I added blitzlibs:all.res in the compiler options and tried to compile, but I just get an error message with a title of "0", stating "Type Not Found". When I click OK I get "program failed (error #80000003)".

I'm completely new to AmiBlitz so have no idea what I can do :-(

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: AmiBlitz (Blitz Basic) "Type not found" error
« Reply #1 on: May 24, 2006, 08:16:59 PM »
You rock :-) Your first example worked!!! I'll try the longer one later - first thing I have to try to get user input working so I can specify the state of the relays in an argument  :idea:

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: AmiBlitz (Blitz Basic) "Type not found" error
« Reply #2 on: May 24, 2006, 08:45:54 PM »
How can I convert between types in Blitz? I want to pass a string variable to the port, e.g. *PPort_Bits\b=bits$, but when I try this I get an "incompatible types" error. I also want to convert back the other way so I can read the bits from the port, but I get the same error when doing bits$=*PPort_Bits\b

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: AmiBlitz (Blitz Basic) "Type not found" error
« Reply #3 on: May 25, 2006, 08:40:41 AM »
Great, thanks! One more question and then I should be able to work the rest out for myself. I have looked through the Blitz II manual, but I can't find out how to read arguments from the command line.

What's going wrong with Remus then? I'm still meaning to create a v3.9 ROM but can't quite find the time :-)

No idea why the page has gone so wide. I can't see anything making it like that  :-?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10