Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Bascom 8051 simulator seems to have some bugs?

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-8051
View previous topic :: View next topic  
Author Message
hawkfire

Bascom Member



Joined: 15 Oct 2006
Posts: 34
Location: N.Wales U.K.

uk.gif
PostPosted: Mon Dec 26, 2022 9:22 pm    Post subject: Bascom 8051 simulator seems to have some bugs? Reply with quote

Hi all.

I have been working on some asm projects and bascom 8051 compiler simulator doesn't seem to recognise some asm instructions, these are:

movx a,@r0
movx @r0, a


in general movx instruction is indistinguishable from mov, i.e., it does not recognise movx(xram). Also, the xchd doesn't seem to be recognised as well.

The problem occurs when trying to access xram only, Iram access works fine.

Cheers
Darren
Back to top
View user's profile
hawkfire

Bascom Member



Joined: 15 Oct 2006
Posts: 34
Location: N.Wales U.K.

uk.gif
PostPosted: Sun Jan 08, 2023 10:03 pm    Post subject: workaround Reply with quote

Hi all,

I have managed to do a workaround for the above, when declaring asm variables I use iram, however when using high level(i,e,. basic) I place my variables in xram. Everything works fine like this.

Although and despite these problems, bascom 8051 is a good compiler.

Cheers
Darren
Back to top
View user's profile
hawkfire

Bascom Member



Joined: 15 Oct 2006
Posts: 34
Location: N.Wales U.K.

uk.gif
PostPosted: Sat Nov 04, 2023 10:18 pm    Post subject: Reply with quote

There are some issues regarding Bascom 8051. The movx @r0,a and movx a,@r1 are not recognized by bascom v18, also the printer output interface is not working as it should. Mark please address these issues.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-8051 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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
You cannot attach files in this forum
You cannot download files in this forum