File: flasm.h

package info (click to toggle)
flasm 1.61-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 516 kB
  • ctags: 819
  • sloc: ansic: 6,147; yacc: 1,203; makefile: 70
file content (56 lines) | stat: -rwxr-xr-x 1,802 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
flasm, command line assembler & disassembler of flash actionscript bytecode
Copyright (c) 2001 Opaque Industries, (c) 2002-2005 Igor Kogan
All rights reserved. See LICENSE.TXT for terms of use.
*/

#ifndef	FLASM_H_INCLUDED
#define	FLASM_H_INCLUDED
#include "action.h"
#include "util.h"

extern int swfVersion;

char *mstrdup(const char *String);

int writeByte(unsigned char num);
int writeShort(unsigned int num);
int writeLongInt(long int num);
int writeFloat(float num);
int writeDouble(double num);
int writeString(char *str);
unsigned int writePushString(char *str);

void addConstant(char *string);
unsigned int writeConstants(void);
void patchFlag(unsigned int back, byte flag);
void patchLength(unsigned int back, unsigned int blen);
void patchFrameLoaded(unsigned int len, int numActions);
int branchTarget(char *label);
int addNumLabel(int numLabel);
void addLabel(char *label);

void writeDoAction(void);
void writeInitMC(unsigned int clipID);
void writeOnClipEvent(unsigned long int flag);
void writePlaceMCStart(unsigned int clipID);
void writePlaceMCEnd(unsigned long int flags);
void writeButtonStart(unsigned int buttonID);
void writeButtonEnd(void);
void writeButtonEvent(unsigned int flags);
void writeDefineMCStart(unsigned int clipID);
void writeDefineMCEnd(void);
void writeProtect(char *str);
void writeEnableDebugger(char *str);
void writeEnableDebugger2(char *str);
void writeMetadata(char *str);
void writeFileAttrs(unsigned long int attrs);
void writeScriptLimits(unsigned int recursion, unsigned int timeout);
void writeExportAssets(unsigned int numAssets);
void writeImportAssets(char *str, unsigned int numAssets);
void startUpdate(char *str);
void finishUpdate(void);
void writeASBytecode(void);
void tellUser(int isError, char *s, ...);

#endif /* FLASM_H_INCLUDED	*/