Page 154 of 162

Re: 43S News

Posted: Fri Jan 14, 2022 7:59 pm
by PierreMengisen
Walter wrote:
Fri Jan 14, 2022 5:32 pm
fundamental law #1 of computing
Where did you find this list of laws? Please cite your sources :x

Re: 43S News

Posted: Fri Jan 14, 2022 9:32 pm
by tuxfish
Hi, maybe this works (?): could the default code page be different between Win10 & Win11 ?
Entering CHCP without parameters in the cmd.exe window shows the active code page.
Changing the code page or the system locale to e.g. UTF-8 before starting the WP43s might do the trick.
CHCP 65001
or
CHCP 1252
or
CHCP 850

Good luck 🤞

P.S.: "How to change system locale in Windows 11" https://websiteforstudents.com/how-to-c ... ws-11/amp/ might be worth to look at, since Win11 handles quite a few topics differently than previous versions ;-)

Re: 43S News

Posted: Fri Jan 14, 2022 9:45 pm
by Walter
I'd recommend 65001.

Re: 43S News

Posted: Sat Jan 15, 2022 2:47 am
by toml_12953
tuxfish wrote:
Fri Jan 14, 2022 9:32 pm
Hi, maybe this works (?): could the default code page be different between Win10 & Win11 ?
Entering CHCP without parameters in the cmd.exe window shows the active code page.
Changing the code page or the system locale to e.g. UTF-8 before starting the WP43s might do the trick.
CHCP 65001
or
CHCP 1252
or
CHCP 850

Good luck 🤞

P.S.: "How to change system locale in Windows 11" https://websiteforstudents.com/how-to-c ... ws-11/amp/ might be worth to look at, since Win11 handles quite a few topics differently than previous versions ;-)
Thanks for the reply! My default CP was 437 so I changed it to 65001, then 1252, then 850. The problem turned out to be backup.bin. When I deleted it and reran the program, it worked. If this has been mentioned before, I apologize for my ignorance!

Re: 43S News

Posted: Sat Jan 15, 2022 3:12 am
by toml_12953
toml_12953 wrote:
Sat Jan 15, 2022 2:47 am
tuxfish wrote:
Fri Jan 14, 2022 9:32 pm
Hi, maybe this works (?): could the default code page be different between Win10 & Win11 ?
Entering CHCP without parameters in the cmd.exe window shows the active code page.
Changing the code page or the system locale to e.g. UTF-8 before starting the WP43s might do the trick.
CHCP 65001
or
CHCP 1252
or
CHCP 850

Good luck 🤞

P.S.: "How to change system locale in Windows 11" https://websiteforstudents.com/how-to-c ... ws-11/amp/ might be worth to look at, since Win11 handles quite a few topics differently than previous versions ;-)
Thanks for the reply! My default CP was 437 so I changed it to 65001, then 1252, then 850. The problem turned out to be backup.bin. When I deleted it and reran the program, it worked. If this has been mentioned before, I apologize for my ignorance! Hey, it's right in the README! Mea culpa.

Re: 43S News

Posted: Sat Jan 15, 2022 6:32 am
by dlachieze
Walter wrote:
Fri Jan 14, 2022 3:19 pm
(you may need an account, don't you?).
If you think so. I’m just testing on the 43S some programs I wrote for the 34S. They are using a small subset of the 43S instructions and once they’ll work don’t expect as many bug reports from me.

Re: 43S News

Posted: Sat Jan 15, 2022 7:45 am
by Walter
Sometimes my posts may need a ;) . I tend to forget it so here are some belated ;) ;) ;) ;) ;) and some in advance ;) ;) ;) ;) ;) . Please continue your good work.

Re: 43S News

Posted: Sat Jan 15, 2022 8:10 am
by dlachieze
As someone said on this forum : I can only read what you wrote ;)
Thanks for the smileys I’ll try to use them wisely where needed. 8-)

Re: 43S News

Posted: Sat Jan 15, 2022 9:27 am
by Walter
I think I know that person well - AFAIK he uses that sentence when even irony doesn't suffice for understanding (especially reading English as a third language). 8-) 8-)

Re: 43S News

Posted: Mon Jan 17, 2022 11:39 pm
by dlachieze
Two issues with V0.21.8:

1] If you want to insert a number followed by an instruction with a parameter in a program, the instruction is not inserted just after the number, but one step further. For example if you have:

Code: Select all

004 SIN
005 +
and you want to insert 0 STO 00 between steps 004 and 005, then you get:

Code: Select all

004 SIN
005 0
006 +
007 STO 00
instead of:

Code: Select all

004 SIN
005 0
006 STO 00
007 +


2] There seems to be some memory management issues. The following program which runs in 5" on my physical 34S takes ages to complete on the 43S Windows simulator (around 10').
While running it keeps printing the following in the black window on the side of the emulator:

Code: Select all

*** Free memory regions overlap!
*** This suggests there was double-free!
Free blocks (25):
   0 starting at   290:     1 blocks =      4 bytes
   1 starting at   458:     1 blocks =      4 bytes
   2 starting at   496:     1 blocks =      4 bytes
   3 starting at   505:     3 blocks =     12 bytes
   4 starting at   511:     1 blocks =      4 bytes
   5 starting at   535:     1 blocks =      4 bytes
   6 starting at   543:     1 blocks =      4 bytes
   7 starting at   540:     1 blocks =      4 bytes
   8 starting at   540: 49156 blocks = 196624 bytes
   9 starting at   551:     4 blocks =     16 bytes
  10 starting at   554: 49153 blocks = 196612 bytes
  11 starting at   557:     1 blocks =      4 bytes
  12 starting at   570:     1 blocks =      4 bytes
  13 starting at   540:     1 blocks =      4 bytes
  14 starting at   540:     1 blocks =      4 bytes
  15 starting at   540:     1 blocks =      4 bytes
  16 starting at   550:     1 blocks =      4 bytes
  17 starting at   562:     1 blocks =      4 bytes
  18 starting at   570:     1 blocks =      4 bytes
  19 starting at  1259:   295 blocks =   1180 bytes
  20 starting at  1558:     1 blocks =      4 bytes
  21 starting at  1574:   270 blocks =   1080 bytes
  22 starting at  1844:   578 blocks =   2312 bytes
  23 starting at  2422:   289 blocks =   1156 bytes
  24 starting at  2711: 11034 blocks =  44136 bytes
Here is the program, launch it with XEQ 'AMI' and it should return 220 in X and 284 in Y:

Code: Select all

01 *LBL 'AMI'
02  0
03  STO 00
04 *INC 00     
05  RCL 00
06  XEQ D      
07  x<=? Y
08  BACK 004
09  XEQ D
10  x=? 00
11  STOP
12  BACK 008
                      X     Y     Z     T     L
13 *LBL D             n    
14  1                 1     n
15  <>XYXX            1     n     1     1
16 *INC T             -     n     s     d
17  <>YYZT            n     n     s     d
18  RCL/ T            n/d   n     s     d        
19  x<? T
20  SKIP 006
21  FP?               n/d   n     s     d    
22  BACK 006
23  X#? T             n/d   n     s     d    
24  RCL+ T     
25  STO+ Z
26  BACK 010
27 *x<> Z             s     n     n/d   d
28  END