Emulator /Simulator

Post your requests and ideas on the future development of mikroPascal for AVR.
Post Reply
Author
Message
ham
Posts: 1
Joined: 22 May 2006 16:37
Location: Australia

Emulator /Simulator

#1 Post by ham » 22 May 2006 16:53

I am new to mikroElectronica compilers. I am expoloring the Pascal and Basic ones but could'nt find simulator / emulator as in Bascom complier. Am i still too novist! Are they existed but I am not awar of it or do n't know where to finf them?

Thanks

vanja
mikroElektronika team
Posts: 253
Joined: 27 Jan 2005 15:13
Contact:

#2 Post by vanja » 23 May 2006 08:49

For now you have to satisfy with debugger.

We will implement simulator / emulator in future.

After compiling press F9, you get Watch window.
You can watch any variable that you are using.

If you want to see value of registers that is not listed,
you just add in program that registers.

Code: Select all

program USART_Test;

var data : byte;
begin
  UCSRA:=UCSRA;    // <----- add this line
  USart1_Init(9600);
  Delay_ms(10);         
  Usart1_Write_Text('mikroElektronika');
  while true do
    begin
      while USart1_Data_Ready=0 do nop;
      data := USart1_Read;
      USart1_Write_Char(data);
    end;
end.
Optimizer will throw out that statement, but it will left use of that register, so you can Add and edit value in Watch window

Post Reply

Return to “mikroPascal for AVR Wish List”