|
@@ -369,9 +369,9 @@ interface
|
|
tai_datablock = class(tailineinfo)
|
|
tai_datablock = class(tailineinfo)
|
|
is_global : boolean;
|
|
is_global : boolean;
|
|
sym : tasmsymbol;
|
|
sym : tasmsymbol;
|
|
- size : longint;
|
|
|
|
- constructor Create(const _name : string;_size : longint);
|
|
|
|
- constructor Create_global(const _name : string;_size : longint);
|
|
|
|
|
|
+ size : aint;
|
|
|
|
+ constructor Create(const _name : string;_size : aint);
|
|
|
|
+ constructor Create_global(const _name : string;_size : aint);
|
|
constructor ppuload(t:taitype;ppufile:tcompilerppufile);override;
|
|
constructor ppuload(t:taitype;ppufile:tcompilerppufile);override;
|
|
procedure ppuwrite(ppufile:tcompilerppufile);override;
|
|
procedure ppuwrite(ppufile:tcompilerppufile);override;
|
|
procedure derefimpl;override;
|
|
procedure derefimpl;override;
|
|
@@ -854,7 +854,7 @@ implementation
|
|
TAI_DATABLOCK
|
|
TAI_DATABLOCK
|
|
****************************************************************************}
|
|
****************************************************************************}
|
|
|
|
|
|
- constructor tai_datablock.Create(const _name : string;_size : longint);
|
|
|
|
|
|
+ constructor tai_datablock.Create(const _name : string;_size : aint);
|
|
|
|
|
|
begin
|
|
begin
|
|
inherited Create;
|
|
inherited Create;
|
|
@@ -862,20 +862,20 @@ implementation
|
|
sym:=current_asmdata.DefineAsmSymbol(_name,AB_LOCAL,AT_DATA);
|
|
sym:=current_asmdata.DefineAsmSymbol(_name,AB_LOCAL,AT_DATA);
|
|
{ keep things aligned }
|
|
{ keep things aligned }
|
|
if _size<=0 then
|
|
if _size<=0 then
|
|
- _size:=4;
|
|
|
|
|
|
+ _size:=sizeof(aint);
|
|
size:=_size;
|
|
size:=_size;
|
|
is_global:=false;
|
|
is_global:=false;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
- constructor tai_datablock.Create_global(const _name : string;_size : longint);
|
|
|
|
|
|
+ constructor tai_datablock.Create_global(const _name : string;_size : aint);
|
|
begin
|
|
begin
|
|
inherited Create;
|
|
inherited Create;
|
|
typ:=ait_datablock;
|
|
typ:=ait_datablock;
|
|
sym:=current_asmdata.DefineAsmSymbol(_name,AB_GLOBAL,AT_DATA);
|
|
sym:=current_asmdata.DefineAsmSymbol(_name,AB_GLOBAL,AT_DATA);
|
|
{ keep things aligned }
|
|
{ keep things aligned }
|
|
if _size<=0 then
|
|
if _size<=0 then
|
|
- _size:=4;
|
|
|
|
|
|
+ _size:=sizeof(aint);
|
|
size:=_size;
|
|
size:=_size;
|
|
is_global:=true;
|
|
is_global:=true;
|
|
end;
|
|
end;
|
|
@@ -885,7 +885,7 @@ implementation
|
|
begin
|
|
begin
|
|
inherited Create;
|
|
inherited Create;
|
|
sym:=ppufile.getasmsymbol;
|
|
sym:=ppufile.getasmsymbol;
|
|
- size:=ppufile.getlongint;
|
|
|
|
|
|
+ size:=ppufile.getaint;
|
|
is_global:=boolean(ppufile.getbyte);
|
|
is_global:=boolean(ppufile.getbyte);
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -894,7 +894,7 @@ implementation
|
|
begin
|
|
begin
|
|
inherited ppuwrite(ppufile);
|
|
inherited ppuwrite(ppufile);
|
|
ppufile.putasmsymbol(sym);
|
|
ppufile.putasmsymbol(sym);
|
|
- ppufile.putlongint(size);
|
|
|
|
|
|
+ ppufile.putaint(size);
|
|
ppufile.putbyte(byte(is_global));
|
|
ppufile.putbyte(byte(is_global));
|
|
end;
|
|
end;
|
|
|
|
|