From ae3f9bbd778ac8525c586d77a201c0ad36db2ba5 Mon Sep 17 00:00:00 2001 From: Sven Oliver Moll Date: Wed, 7 Sep 2016 19:21:24 +0200 Subject: [PATCH] Added assembler pseudo commands .P4510 and .IFP4510 together with docs and testcase --- doc/ca65.sgml | 37 +++++++++++++++++++---- src/ca65/condasm.c | 11 +++++++ src/ca65/pseudo.c | 10 +++++++ src/ca65/scanner.c | 2 ++ src/ca65/token.h | 2 ++ test/assembler/4510-cpudetect.ref | Bin 0 -> 60 bytes test/assembler/6502-cpudetect.ref | Bin 0 -> 16 bytes test/assembler/6502x-cpudetect.ref | Bin 0 -> 29 bytes test/assembler/65816-cpudetect.ref | Bin 0 -> 61 bytes test/assembler/65c02-cpudetect.ref | Bin 0 -> 47 bytes test/assembler/65sc02-cpudetect.ref | Bin 0 -> 33 bytes test/assembler/Makefile | 43 +++++++++++++++++++-------- test/assembler/README | 21 ++++++++++++- test/assembler/huc6280-cpudetect.ref | Bin 0 -> 62 bytes 14 files changed, 106 insertions(+), 20 deletions(-) create mode 100644 test/assembler/4510-cpudetect.ref create mode 100644 test/assembler/6502-cpudetect.ref create mode 100644 test/assembler/6502x-cpudetect.ref create mode 100644 test/assembler/65816-cpudetect.ref create mode 100644 test/assembler/65c02-cpudetect.ref create mode 100644 test/assembler/65sc02-cpudetect.ref create mode 100644 test/assembler/huc6280-cpudetect.ref diff --git a/doc/ca65.sgml b/doc/ca65.sgml index 6ce5ecef6..baabffa7c 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -424,8 +424,10 @@ The assembler accepts command was given). all valid 65C02 mnemonics when in 65C02 mode (after the command was given). -all valid 65618 mnemonics when in 65816 mode (after the +all valid 65816 mnemonics when in 65816 mode (after the command was given). +all valid 4510 mnemonics when in 4510 mode (after the + command was given). @@ -3103,6 +3105,12 @@ Here's a list of all control commands and a description, what they do: (see command). +.IFP4510