v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
as6502
codegen.h
Go to the documentation of this file.
1
4
/*
5
* Copyright (c) 2013 Daniel Loffgren
6
*
7
* Permission is hereby granted, free of charge, to any person obtaining a copy
8
* of this software and associated documentation files (the "Software"), to
9
* deal in the Software without restriction, including without limitation the
10
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11
* sell copies of the Software, and to permit persons to whom the Software is
12
* furnished to do so, subject to the following conditions:
13
*
14
* The above copyright notice and this permission notice shall be included in
15
* all copies or substantial portions of the Software.
16
*
17
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
* IN THE SOFTWARE.
24
*/
25
26
#ifndef v6502_codegen_h
27
#define v6502_codegen_h
28
29
#include <stdio.h>
30
31
#include <
ld6502/object.h
>
32
#include <
as6502/symbols.h
>
33
37
as6502_token
*
as6502_resolveArithmeticInExpression
(
as6502_token
*head);
39
void
as6502_processObjectDirectiveInExpression
(
ld6502_object
*obj,
int
*currentBlob,
as6502_token
*head);
42
#endif
as6502_resolveArithmeticInExpression
as6502_token * as6502_resolveArithmeticInExpression(as6502_token *head)
Resolves arithmetical operations down to their literal result.
Definition:
codegen.c:35
as6502_token
An individual token which will often be a part of a linked list of tokens.
Definition:
token.h:41
as6502_processObjectDirectiveInExpression
void as6502_processObjectDirectiveInExpression(ld6502_object *obj, int *currentBlob, as6502_token *head)
Automatically processes any dot directive in a given line and updates an ld6502_object_context.
Definition:
codegen.c:102
ld6502_object
The assembler's representation of an object file in memory.
Definition:
object.h:47
symbols.h
Symbol table management.
object.h
Binary object management.
Generated on Sat Feb 9 2019 18:33:23 for v6502 by
1.8.13