Thema: Delphi C Programm nach Pascal

Einzelnen Beitrag anzeigen

Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#2

Re: C Programm nach Pascal

  Alt 3. Feb 2009, 19:43
So würde ich jetzt sagen:

Delphi-Quellcode:
const PIO_A27: LongWord = 1 shl 27;

var
  map_base: Pointer;

//Das sagtest du ja ist kein Problem

PLongWord(Cardinal(map_base+(PIOA_PER and MAP_MASK)))^ := PIO_A26 or PIO_A25 or PIO_A24 or PIO_All or PIO_A14;
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat