the cutting room mirror

Tank Command (Amstrad CPC)

Be a tank, destroy a tank.

Source Code Fragments#

The disk version of the game contains two small fragments of code.

Track 2, Sector 46:

        ld a,4
        ld (track),a
        ld a,65
        ld (sector),a
        ld de,&0b00
        ld (lddar),de
        ld de,&0100
        ld (filsiz),de
        call ldlp1
        ld de,odata
        ld a,56
        call boot2
        ld de,ogame
        ld a,55
        call boot2
        jp ogame
        ret

        ;de is address to load to
.boot2  ld (lddar),de 
        ld iy,filetab
        add a,a
        add a,a ;*4 (s,t,l1,l2)
        ld d,0
        ld e,a
        ad

Track 2, Sector 48:

defb 26,19,20,34,42 ;"left"
.msg4
        defb 18,23,33,25,42 ;"disk "
        defb 19,32,32,29,32 ;"error"
        defb 42,42,42,42,42 ;
.msg5
        defb 27,29,34,29,32 ;"motor"
        defb 42,34,29,29,42 ;"too"
        defb 42,22,29,34,42 ;"hot"
.msg6
        defb 42,42,42,42,42
        defb 42,28,29,42,42 ;" no"
        defb 19,28,19,27,39 ;"enemy"

.msg7   defb 42,42,42,42,42 ;"     "
        defb 42,42,42,42,42 ;"     "
        defb 42,42,42,42,42 ;"     "
.msg8   defb 42,22,23