Sharing doesn't work. (I can access my file's code from share links but everyone says they can't)
Specifically, when he shares the link and we open it, it'll just show our list of programs, rather than the program he tried to share.
When I create a DCS7 assembly program with the normal ASM header located at https://dcs.cemetech.net/index.php?title=ASM_Header, I get 45 errors.
https://pastebin.com/8DW7sncp
clevor wrote:
When I create a DCS7 assembly program with the normal ASM header located at https://dcs.cemetech.net/index.php?title=ASM_Header, I get 45 errors.
https://pastebin.com/8DW7sncp
This is an incompatibility between the official dcs7 include file and SPASM: turns out SPASM doesn't let you define a macro with the same name as a symbol, so the way it defines shortcut macros for some GUI functions is problematic.

I've patched the dcs7.inc that sourcecoder provides to avoid this problem; you may need to clear your browser's cache to get the new version.


Code:
diff --git a/content/SDK/Mono/dcs7.inc b/content/SDK/Mono/dcs7.inc
index 91fb494..80f29c7 100644
--- a/content/SDK/Mono/dcs7.inc
+++ b/content/SDK/Mono/dcs7.inc
@@ -41,7 +41,10 @@ Cn2_Int_RecBuf =SavesScreen+5+2                                              ;86F3h
 ;+270: cn2_int_sendbuf
 Cn2_Int_SendBuf =SavesScreen+256+5+2+7                         ;87FAh

+; TASM and SPASM don't allow macros to have the same name as other symbols
+; (which for these macros the symbols are defined later).
 #ifndef TASM
+#ifndef SPASM
 #define PushGUIStack(xx,yyyy,zzzz) ld a,xx \ ld hl,yyyy \ ld de,zzzz \ call PushGUIStack
 #define PopGUIStack() call PopGUIStack
 #define PopGUIStacks(xx) ld b,xx \ call PopGUIStackS
@@ -61,6 +64,7 @@ Cn2_Int_SendBuf =SavesScreen+256+5+2+7                                ;87FAh
 #define PushGUIStacks(xxxx) ld hl,xxxx \ call PushGUIStacks
 #define GUIFindThis(offset) ld a,offset \ call GUIFindThis
 #endif
+#endif

 iversion              = $4083
 irandom               = $4086
Thanks for taking care of this, Tari!
I keep having a minor issue where some parts of text in a string will get turned into other tokens because I'm using lower case letters, for example, the pi in Spirit gets changed into S(pi symbol)rit
Use Sp\irit to prevent this from happening. SourceCoder will try to save space by changing strings to tokens but using a backslash will force SourceCoder to keep the string of lowercase letters as is.
aroanent wrote:
I keep having a minor issue where some parts of text in a string will get turned into other tokens because I'm using lower case letters, for example, the pi in Spirit gets changed into S(pi symbol)rit

Just include a backslash.

For example:
p\i will be parsed as the letters p and i rather than the pi symbol.

This can be used for any token you want to be parsed as individual letters, not just pi. For example,
sin( can be written as s\in( in sourcecoder if you do not want the actual sin( token.

The placement of the backslash doesnt matter, as long as its within the word and not on the front or end of it.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
» Goto page Previous  1, 2, 3 ... 29, 30, 31
» View previous topic :: View next topic  
Page 31 of 31
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement