Search found 1080 matches

by SARG
Jul 31, 2020 20:36
Forum: Community Discussion
Topic: Found another compiler bug: "operand type mismatch for `call'"
Replies: 11
Views: 333

Re: Found another compiler bug: "operand type mismatch for `call'"

The assembler generates an error if you use a reserved word as a variable, code label, or other identifier. Sure but it concerns asm code handled in the assembler. An equivalent in freebasic : dim as integer print --> error 4: Duplicated definition, found 'print' in 'dim as integer print' However i...
by SARG
Jul 31, 2020 17:11
Forum: Community Discussion
Topic: Found another compiler bug: "operand type mismatch for `call'"
Replies: 11
Views: 333

Re: Found another compiler bug: "operand type mismatch for `call'"

@MrSwiss Why prevent a coder to use the word 'aaa' as name ? And the list could be long. AAA = ASCII Adjust After Addition. IMHO it's better to let the use of these words as they are not related to freebasic. And as we can see in the OP's post the error is not clear.... it would be necessary to test...
by SARG
Jul 31, 2020 16:22
Forum: Community Discussion
Topic: Found another compiler bug: "operand type mismatch for `call'"
Replies: 11
Views: 333

Re: Found another compiler bug: "operand type mismatch for `call'"

@MrSwiss,

Do you know all the asm words ? Marcov gave the number, about 1500... Many seem 'innocent'

And I don't understand, the issue is not only with inline asm.
dim as integer rax or sub word() are a problem.
by SARG
Jul 31, 2020 15:58
Forum: Community Discussion
Topic: Found another compiler bug: "operand type mismatch for `call'"
Replies: 11
Views: 333

Re: Found another compiler bug: "operand type mismatch for `call'"

No problem in 32-bit, even with gcc? No problem as either '@n' or an underscore is added. But on 64bit nothing is done. @Manpcnin You can use the new 64bit emitter : gas64 see https://freebasic.net/forum/viewtopic.php?f=8&t=27478 A '$' is added at the end of each name (global variable and proce...
by SARG
Jul 29, 2020 7:24
Forum: Projects
Topic: Standalone use of new GAS64 assembler as backend for a different Parser
Replies: 8
Views: 321

Re: Standalone use of new GAS64 assembler as backend for a different Parser

But, I have not received any emails containing any information as of right now. The same address for 19 years. Strange because we have already exchanged using this address and after checking no error of sending, maybe gone in spam. All the files are here http://users.freebasic-portal.de/sarg/Docs_W...
by SARG
Jul 27, 2020 9:44
Forum: Projects
Topic: Standalone use of new GAS64 assembler as backend for a different Parser
Replies: 8
Views: 321

Re: Standalone use of new GAS64 assembler as backend for a different Parser

Hi wally, A description of all the commands and instructions would be great. Did you receive my email ? There is a link to an alphabetic list of these instructions then each one is well described. For well understanding your project , where does it sit ? I omit object files and linker. BAS --> fbc [...
by SARG
Jul 26, 2020 7:12
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 336
Views: 35845

Request to mods (move some posts)

@wally
Although I'm not sure to understand exactly what you want to do I have sent you docs and links. :-)
Create a new topic.

@mods
When wally will have create the new topic, could you move the last posts (begin at the first wally's one until mine) in that one.
by SARG
Jul 25, 2020 0:12
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 336
Views: 35845

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Hi wallyg, In your last post there is a mix of debugging data (when adding option -g) --> (stabs stabn) and others are instructions more for the assembler itself --> globl lcomm. I can send you some documents and links that should help you to sort and better understand all those commands, instructio...
by SARG
Jul 24, 2020 23:49
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 645
Views: 161073

Re: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)

Since you already know where the array selected starts and ends why do you not have the delta correspond to the starting and ending of the array? You dreamt it I did it :-) It's working but not fully tested so take this version as a beta (32bit only). http://users.freebasic-portal.de/sarg/FBdebugge...
by SARG
Jul 23, 2020 16:29
Forum: Tips and Tricks
Topic: Syntax highligher for Notepad++ (FB0.91)
Replies: 14
Views: 7431

Help with regular expressions for Notepad++

I don't use a lot Notepad++ but it's very fast for when loading big files and usefull for some tasks like files display in 2 windows and differences between two files. Now Freeasic is integrated to Notepad but the function list is not implemented. So I added (in functionlist.xml) the parser written ...
by SARG
Jul 23, 2020 15:34
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 336
Views: 35845

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

20180206.a64:187150: Error: no such instruction: `found AN ERROR:No room for spilling register report dev,current limit 150' I wonder if the limit couldn't be automatically adapted ? (or something approaching) I will do that but before need to investigate (error in the emitter or very complex line)...
by SARG
Jul 23, 2020 15:13
Forum: Game Dev
Topic: Retro parallax scrolling
Replies: 4
Views: 247

Re: Retro parallax scrolling

UEZ wrote:@SARG: GAS64 has a problem to compile this.
@UEZ Thanks. One variable is named 'DX' so not good for the assembler... It's allowed in the current version but I did a mistake when compiling or copying files. See the usual thread.
Off topic.... Sorry BasicCoder2.
by SARG
Jul 23, 2020 0:06
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 645
Views: 161073

Re: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)

Thanks that helped a lot. You are welcome. I notice that when I dim my array from 1 to limit that delta does not start at 1 but always starts at 0 and goes past the limit value. Delta is not the low bound, it's the delta relative to the index value initialy selected. I agree that's not obvious. Exa...
by SARG
Jul 22, 2020 21:06
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 645
Views: 161073

Re: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)

No problem on my side. Some information how to proceed : When you select show/expand on the structure it's the current element (visible in proc/var) that is selected and displayed. You can change the index using delta +/- to select the wanted element, 'step' then click on update. You can also 'step'...
by SARG
Jul 22, 2020 10:24
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 645
Views: 161073

Re: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)

Hi StillLearning,

In Show/expand you should be exactly on the array.
You could try using selection index. For simple arrays you'll see a 'slice' of values. And there is an option for automatic update.

Post an example of yours arrays I'll give you a better answer.

Go to advanced search