Re: [Sdcc-user] Can specify serial input baud to uCsim S51?

2010-07-15 Thread Daniel Drotos
On Fri, 16 Jul 2010, 谢继雷 wrote: > and I want to know if there is some options to control the simulated > serial line's baud to S51 simulator. Obviously there is no such option. Baud rate is controlled by SFRs of timer and uart. Simulator counts ticks and when all necessary bits are "received" i

Re: [Sdcc-user] Adding STM8 support to SDCC

2012-12-06 Thread Daniel Drotos
On Thu, 6 Dec 2012, Vaclav Peroutka wrote: Hi Vaclav, > - ucsim - port is (as far as I remember) prepared but untested It's very nice to hear that somebody is extending features of ucsim. I'm going to pick up and continue to work on ucsim, some new things are implemented already. By the way, I

Re: [Sdcc-user] Generating code for Silabs C8051F330

2016-06-01 Thread Daniel Drotos
On Thu, 2 Jun 2016, Benjamin Larsson wrote: > https://github.com/merbanan/C8051F300_examples > > Everything worked fine. Then I switched to the C8051F330 mcu and all > went to shit. Small examples worked somewhat but when compiling larger Every year our students build a small panel as a student p

Re: [Sdcc-user] uCsim for STM8 question (0.6-pre28)

2017-06-11 Thread Daniel Drotos
you start ucsim with -J option, trace will be turned on, and _every_ instruction will print out cpu state like "info reg". Tracing can be checked and turned on/off using "jaj" command which accepts a boolean parameter: $ ./sstm8 uCsim 0.6-pre30, Copyright (C) 1997 D

Re: [Sdcc-user] uCsim / asim: non-interactive serial port communication through netcat

2017-06-24 Thread Daniel Drotos
On Fri, 23 Jun 2017, tg9...@gmx-topmail.de wrote: I'd like to use the uC simulation uCsim for test automation, and my use-case requires the uCsim serial port simulation to exchange information through a script. You can find some examples for this usage in ucsim source code, see example, s51.

Re: [Sdcc-user] uCsim / asim: non-interactive serial port communication through netcat

2017-06-24 Thread Daniel Drotos
On Sat, 24 Jun 2017, tg9...@gmx-topmail.de wrote: This means that a program outside of uCsim needs to monitor the reply from the µC code before the next line of input can be sent (handshake, half-duplex operation). Well, I don't have solution for this scenario. What about expect? I've never

[Sdcc-user] stm8 "far" pointer

2017-07-15 Thread Daniel Drotos
Hi, I'm testing simulation of stm8 flash controller in ucsim. To start a program/erase operation flash area must be written as data. sdcc-stm8 uses 16 bit pointers, is it possible to address over 64k somehow? Daniel ---

[Sdcc-user] problem with volatile struct member

2017-07-18 Thread Daniel Drotos
Hi, I'm using sdcc-stm8 with following code: struct FLASH_t { ... ; volatile uint8_t iapsr; ...}; #define FLASH ((struct FLASH_t *)BASE_ADDRESS_OF_FLASH_CONTROLLER) Program waits end of flash operation in a busy loop: while ((FLASH->iapsr & 5) == 0) ...; it works well rereading value of iaps

Re: [Sdcc-user] μCsim simulator 'simif' interface

2020-05-23 Thread Daniel Drotos
On Thu, 21 May 2020, Basil Hussain wrote: I'm trying to understand how to use the μCsim simulator interface - the interface between the program running within the simulator, and the simulator itself. My aim is to have the program that's running in the sim measure the execution time (i.e. no. o

Re: [Sdcc-user] ucSim instruction cycle counts - where defined?

2020-07-23 Thread Daniel Drotos
On Wed, 22 Jul 2020, Basil Hussain wrote: In ucSim, where or what defines how many simulated cycles each instruction takes? Specifically, I am looking at the STM8 simulator. Nowhere, and nothing defines that. Correct tick counting is not implemented in uCsim (except s51). It counts 1 clock (t

Re: [Sdcc-user] ucSim instruction cycle counts - where defined?

2020-07-23 Thread Daniel Drotos
On Thu, 23 Jul 2020, Basil Hussain wrote: One would only expect it to simulate the nominal number of cycles for all instructions. It needs some work to make it more realistic. This is confusing. What is the difference between 'vclks' and 'clks', and why are there two separate values? "clks

Re: [Sdcc-user] Question about retargeting.

2020-11-11 Thread Daniel Drotos
On Tue, 10 Nov 2020, Bill Gaylord wrote: I am working on a homebrew CPU / System and want to "port" C to it. (I already have a slightly above Assembly like language for it.) I'm in somehow similar situation. I've an own-designed processor, what I use on FPGA, mainly for educational purposes

Re: [Sdcc-user] Question about retargeting.

2020-11-11 Thread Daniel Drotos
On Wed, 11 Nov 2020, Bill Gaylord wrote: I can link to my horrible google sheets for my Instruction set if that helps at all. Dear Bill, SDCC needs a simulator too. To implement support in uCsim, we need as much information as you can provide... Daniel ___

Re: [Sdcc-user] ucSim serial interface redirection on Windows

2020-12-03 Thread Daniel Drotos
On Thu, 3 Dec 2020, Basil Hussain wrote: However, ucSim seems to hang when I try this! All I get is these startup messages: I do not have too much experience with windows, but on unix, this is normal. This is the behavior of the pipe, not the app. When first program opens one end of the pipe

Re: [Sdcc-user] ucSim serial interface redirection on Windows

2020-12-03 Thread Daniel Drotos
On Fri, 4 Dec 2020, Basil Hussain wrote: Perhaps it's possible that named pipes on Windows don't work the same way as on unix. I'll try to test it. You mentioned "io ninja", I'll intall it. How do you create pipes with it? C:\Users\Basil>sstm8 -b uCsim 0.6

Re: [Sdcc-user] ucSim serial interface redirection on Windows

2020-12-04 Thread Daniel Drotos
On Fri, 4 Dec 2020, Philipp Klaus Krause wrote: There are newer builds on the snapshot page (usually about one day behind current trunk in svn), including Windows binaries: http://sdcc.sourceforge.net/snap.php For a quick try, I've put current (64 bit) exe files at: http://mazsola.iit.uni-mi

Re: [Sdcc-user] ucSim serial interface redirection on Windows

2020-12-04 Thread Daniel Drotos
On Fri, 4 Dec 2020, Basil Hussain wrote: I've only recently started using IO Ninja myself, so I'm certainly no expert on it, but I played with the Pipe Server functionality: [ ... ] Dear Basil, I started to read MS docs about pipes, and I suspect that I can not fix the problem soon -- I'm bu

Re: [Sdcc-user] problem trying to compile sdcc-4.1.0 on openindiana hipster 2110

2022-02-05 Thread Daniel Drotos
On Fri, 4 Feb 2022, Marc Lobelle wrote: gmake apps gmake[2] : on entre dans le répertoire « /opt/sdcc/sim/ucsim » gmake -C s51.src s51.src [ ... ] Any idea about what is missing ? Probably an include file that is not in the expected place ? No, this is a linker problem. Please try following:

Re: [Sdcc-user] ucSim STM8 stack pointer wrapping

2022-04-19 Thread Daniel Drotos
On Mon, 18 Apr 2022, Basil Hussain wrote: Does ucSim simulate this accurately? No. Wrapping is not implemented. SP is checked against a limit after push operations, but this generates an error message only. You can set the limit with "sp_limit=value" command, but it will not be wrapped. st

Re: [Sdcc-user] ucSim STM8 stack pointer wrapping

2022-04-21 Thread Daniel Drotos
On Thu, 21 Apr 2022, Basil Hussain wrote: All have a stack limit, but some of them may not have the roll-over. So, in those cases the stack pointer just stops decrementing at the limit when there is no roll-over? I don't know, but I don't think so. According to page 32 of RM0016, I think R

Re: [Sdcc-user] ucSim STM8 stack pointer wrapping

2022-04-25 Thread Daniel Drotos
On Fri, 22 Apr 2022, Basil Hussain wrote: A couple of STM8L datasheets I then looked at (STM8L050 & STM8L151) *do* show a limited stack of 512 bytes on their memory map, so one could assume that they behave the same as the STM8S/AF. But, without parts in hand to actually test, who really knows

Re: [Sdcc-user] uCsim STM8: unexplainable discrepancy in timer values

2022-12-18 Thread Daniel Drotos
On Sun, 18 Dec 2022, Basil Hussain wrote: Benchmark wrapper assembly for code 'A': Benchmark wrapper assembly for code 'B': Dear Basil, Can you send me hex of your two compiled test programs, A and B, please? Daniel ___ Sdcc-user mailing list

Re: [Sdcc-user] uCsim STM8: unexplainable discrepancy in timer values

2022-12-18 Thread Daniel Drotos
On Sun, 18 Dec 2022, Basil Hussain wrote: Num Type   Disp Hit   Cnt   Address  Cond 1   event  keep 1 1 0x00500a write cmd="timer stop benchmark; timer get benchmark; timer set benchmark 0; timer start benchmark; run" Dear Basil, In script, instead of run, you should use

Re: [Sdcc-user] Fwd: SDCC + edsim51?

2006-12-11 Thread Daniel Drotos
On Mon, 11 Dec 2006 [EMAIL PROTECTED] wrote: > meantime, I'm going to see if I cant get ucsim running under dosbox. You can't, ucsim is *nix only. There is "s51 for dos" on my homepage, but note that it is different, very old, unmaintaned, probably not bugfree application. Anyway, it is not to

Re: [Sdcc-user] Quickstart document, was: Virus in SDCC-2.8.0-setup.exe - MD5 etc tutorial

2008-08-29 Thread Daniel Drotos
On Fri, 29 Aug 2008, Jan Waclawek wrote: > There _is_ a '51 simulator which comes with SDCC, but it is rather > cumbersome to use and has a command-line interface only (read: command line, > no text-screen). It is not intended to be used by human, rather, in an Excuse me, but I should say that I

[Sdcc-user] ucsim, was: Re: Quickstart document, was: Virus in SDCC-2.8.0-setup.exe - MD5 etc tutorial

2008-08-29 Thread Daniel Drotos
On Fri, 29 Aug 2008, Jan Waclawek wrote: > OK the wording was a bit strong, I apologize. That's OK, no problem. Sometimes GUI is more important but sometimes CLI can be usefull too. > Otherwise, it's a very fine simulator and I know it's a lot of work > you put into that, just the ease of use

Re: [Sdcc-user] Fwd: SDCC + edsim51?

2008-09-05 Thread Daniel Drotos
On Fri, 5 Sep 2008, Richard Erlacher wrote: > I've looked through the download of ucsim, and can find no executables, nor > do I find any source files from which to build them. What would you > recommend as a source for these materials? I call DOS version as `s51', and I call "UNIX" version as `

[Sdcc-user] boost_1_88

2025-05-17 Thread daniel . drotos
Dear SDCC, I'm trying to compile sdcc on a system where the boost library is outdated, and I can not upgrade it. I've downloaded boost_1_88_0.tar.gz and unpacked into my home dir. How can I run sdcc's configure to use it? Daniel ___ Sdcc-user m