-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtzxblock27.inc
52 lines (40 loc) · 1.05 KB
/
tzxblock27.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2022-2025 Zoran Vučenović
// SPDX-License-Identifier: Apache-2.0
{$ifdef tzx_header_section}
TTzxBlock27 = class (TTzxBlock)
protected
function CheckReturnFromCallSequence: Boolean; override;
function IsReallyPlayableBlock: Boolean; override;
public
class function GetBlockId: DWord; override;
{returns whole block length, without id byte}
function GetBlockLength: Integer; override;
function LoadBlock(const {%H-}Stream: TStream): Boolean; override;
class function GetBlockDescription: String; override;
end;
{$else}
function TTzxBlock27.CheckReturnFromCallSequence: Boolean;
begin
Result := True;
end;
function TTzxBlock27.IsReallyPlayableBlock: Boolean;
begin
Result := True;
end;
class function TTzxBlock27.GetBlockId: DWord;
begin
Result := $27;
end;
function TTzxBlock27.GetBlockLength: Integer;
begin
Result := 0;
end;
function TTzxBlock27.LoadBlock(const Stream: TStream): Boolean;
begin
Result := True;
end;
class function TTzxBlock27.GetBlockDescription: String;
begin
Result := 'Return from sequence';
end;
{$endif}