I am translating some assembly code into C, and I need some help with a part of it:
.equ UBRR_val = 12 ;UBRR sets baud, 12 = 19200baud at 4 MHz .def char = r17 ; Register to hold a character .org 0x00 ; Execute this when reset button is pushed rjmp start
So I have translated it as follows:
#define UBRR_val ((4UL/19200)-1) #define char* = 17; .org 0x00 ; Execute this when reset button is pushed rjmp start
But I can't figure out
.org 0x00;I think the
rjmp startdirects to the main so no changes are needed
Anyone that can help with it?