[ << ] [ >> ]           [] [] [] [ ? ]

31 PDP11 cpu module

This chapter documents the backend for the PDP-11 CPU architecture.


31.1 Legal

This module is written in 2020 by Frank Wille and is covered by the vasm copyright without modifications.


31.2 Additional options for this module

This module provides the following additional options:

-eis

Enables the Extended Instruction Set option (EIS).

-fis

Enables the Floating point Instruction Set option (FIS).

-msp

Enables additional memory space instructions.

-opt-branch

Enables optimization of jmp instructions to br when possible and translates br instructions to jmp when required. It will also translate conditional branches, where the destination is out of range, into a jmp instruction and a negated conditional branch over this jmp.


31.3 General

This backend accepts PDP-11 instructions as described in the PDP11/40 Processor Handbook, by Digital Equipment Corporation.

The target address type is 16 bit.

Instructions consist of two up to six bytes and required 16-bit alignment. Data, when not accessed as single bytes, also requires 16-bit alignment.


31.4 Known Problems

Some known problems of this module at the moment:


31.5 Error Messages

This module has the following error messages:


[ << ] [ >> ]           [] [] [] [ ? ]