If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!

Flak (ZX Spectrum)

From The Cutting Room Floor
Jump to navigation Jump to search

Title Screen

Flak

Developer: U.S. Gold
Publisher: U.S. Gold
Platform: ZX Spectrum
Released in EU: 1984


SourceIcon.png This game has uncompiled source code.
DevMessageIcon.png This game has a hidden developer message.


Hidden Message

The message can be seen at 6BA3 in the .z80 dump and at 269B in the .tap dump.

This program was adapted from a Commodore 64 version 
by Christopher Smith of Croydon, Surrey, England 
between September and December 1984, using an A.C.T. 
Apricot micro. It took approx 300 hours of programming 
and debugging time and bought the programmers wife 
a new kitchen. C.P.S. 1984.


(Source: Divingkataetheweirdo)

Source Code

A couple of source code fragments are in the game. These can be found at the addresses listed below in the .tap dump.

29E9:

;********************************************
;*                                          *
;*          PRINT THE SHIP ROUTINE          *
;*                                          *
;********************************************
;
;
.ABSOLUTE
.PROC SHIP
.ORG 0C200H
.PAGEHEIGHT 5000
.NOLIST
TABLE .EQU 32383
CHRSTR .EQU 28160
INIT .EQU 831CH
FILBUF .EQU 84ECH
FLAG .EQU 8382H
ATSCFG .EQU 865CH
MVE .EQU 8384H
SCRCNT .EQU 84E7H
CHARCNT .EQU 84E6H
ATTIN .E

6DDD:

CALL ATTSWP
CALL ATTSWP
LD BC,30                   ;AND NOW FINAL ATTRIBUTE
ADD HL,BC
CALL ATTSWP
LD A,(INTFLG)
LD C,A
LD A,0
LD (INTFLG),A
BIT 7,C
RET NZ
EI                         ;AND DONE
RETI                       ;TOTAL=13,457 T-STATES
SHPCNT .BYTE
;
;
;
;*** SERVICE ROUTINES FOR INTERRUPT ROUTINE ***
;
;
;
;
;
ATTADD LD HL,(SHPY)
       LD DE,(SHPX)
       LD A,L
       AND 248
       LD L,A
ENT1   SLA L
       RL H
       SLA L
       RL H
       ADD HL,DE
       LD DE,22528
       ADD HL,DE
       RET


(Source: Divingkataetheweirdo)