Commit 1eb8d8a1 authored by Ben Avison's avatar Ben Avison
Browse files

Build fix

Detail:
  Defines UXTH and SXTH as macros. This means we can assemble the output of
  cc -S -cpu 6 even using current versions of objasm that are limited to the
  v5TEJ instruction set. It is expected that objasm will ignore these macros
  if/when it gains v6 instruction set support.
Admin:
  Tested - it works.
parent 3a68b17c
......@@ -402,6 +402,19 @@ file SETL {FALSE}
nbuffers * 8 ; number of code buffers to use
]
; Enable use of cc -cpu 6 with an old version of objasm
; If your objasm understands v6 opcodes, it will ignore these macros
; Note the 3rd parameter is not implemented yet (not currently needed)
MACRO
$lab SXTH $rd,$rm
$lab DCI &E6BF0070 :OR: ($rd :SHL: 12) :OR: $rm
MEND
MACRO
$lab UXTH $rd,$rm
$lab DCI &E6FF0070 :OR: ($rd :SHL: 12) :OR: $rm
MEND
; ----------------------------------------------------------------------------
ASSERT (.=Module_BaseAddr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment