Search found 3 matches

by ervin
Sun Jan 12, 2025 9:03 am
Forum: Support
Topic: GLOBAL and SHARED variables
Replies: 3
Views: 1137

Re: GLOBAL and SHARED variables

Makes sense, thanks!
(by the way, I'm "poppichicken" that has been reporting bugs on github).
:)
by ervin
Fri Jan 10, 2025 2:32 pm
Forum: Support
Topic: GLOBAL and SHARED variables
Replies: 3
Views: 1137

Re: GLOBAL and SHARED variables

I solved it!

Code: Select all

OPTION EXPLICIT ON

DIM a AS BYTE
GLOBAL a

PROCEDURE testProc
	PRINT a
END PROCEDURE

a=8
CALL testProc
by ervin
Fri Jan 10, 2025 2:22 pm
Forum: Support
Topic: GLOBAL and SHARED variables
Replies: 3
Views: 1137

GLOBAL and SHARED variables

Hi everyone. I am trying to write a routine to print large sprites using small tile pieces. Anyway, I am having some problems with GLOBAL and SHARED variables. I've reduced the code to a very basic example. OPTION EXPLICIT ON DIM a AS BYTE PROCEDURE testProc SHARED a PRINT a END PROCEDURE a=8 CALL t...