• Global Object Pointer - C++ LPC1768
    Hi, I have a problem about Global Pointer of an Object. Here is my simple code #include "LPC17xx.h" #include "class.h" Class1* Pot; /* Interrupt every 100ms */ extern "C" void SysTick_Handler...
  • How to access global variables of C into Assembly
    Hi Forum Members, I am using Keil uVision2 for P89C51RD2HBP. I want to access the "global variables defined in C" in assembly routine. The format of my program is as below: #include <stdio.h>...
  • Global Register Coloring and Inline Assembly
    Quite often I'll code some of my modules entirely in A51 assembly and, to be thorough, I always fill out the $REGUSE statement for all functions. A module written like this will then provide the necessary...
  • Global Variables vs. Pointers in Embedded Design
    I've written a few 8bit embedded systems and the codebase I inherited and have expanded is basically 80% global variables (extern volatile), and than non-global control flags and logic variables as needed...
  • XBANKING, LX51, Pointers and Assembler
    Hi! I'm using XBANKING.a51 from "Keil\C51\Examples\FarMemory\3 XData Areas on T89C51RD2" for access to various types of memory MCU Atmel AT89C5131. I'm define memory model - Large, "User Classes...