Go Home Page
The Go Programming Language

Package main

import "exp/spacewar"

Package files

code.go spacewar.go

type SpacewarPDP1

A SpacewarPDP1 is a PDP-1 machine configured to run Spacewar! It responds to traps by drawing on the display, and it flushes the display and pauses every second time the program counter reaches instruction 02051.

type SpacewarPDP1 struct {
    pdp1.M
    // contains unexported fields
}

func (*SpacewarPDP1) Init

func (m *SpacewarPDP1) Init(ctxt draw.Context)

func (*SpacewarPDP1) Step

func (m *SpacewarPDP1) Step() os.Error

func (*SpacewarPDP1) Trap

func (m *SpacewarPDP1) Trap(y pdp1.Word)