diff options
| author | manuel <manuel@clan-server.at> | 2009-05-13 15:29:51 +0200 |
|---|---|---|
| committer | manuel <manuel@clan-server.at> | 2009-05-13 15:29:51 +0200 |
| commit | 431bbac5a99abbccf33500e22aa353ec792eff94 (patch) | |
| tree | 0649a2833c7ee5f6cbce145b719c104c7efe19df /ue3/mycpu/instructions.h | |
| parent | 89e202f49b9857dcd3627fbc4e0262125d729bbc (diff) | |
| download | ooprog-431bbac5a99abbccf33500e22aa353ec792eff94.tar.gz ooprog-431bbac5a99abbccf33500e22aa353ec792eff94.tar.bz2 ooprog-431bbac5a99abbccf33500e22aa353ec792eff94.zip | |
* adding -Wno-long-long to all Makefiles
* adding execute operator to cinstruction
* added labels map for better performance
Diffstat (limited to 'ue3/mycpu/instructions.h')
| -rw-r--r-- | ue3/mycpu/instructions.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/ue3/mycpu/instructions.h b/ue3/mycpu/instructions.h index 8c62e0b..0e4d99c 100644 --- a/ue3/mycpu/instructions.h +++ b/ue3/mycpu/instructions.h | |||
| @@ -274,29 +274,19 @@ class CInstructionLabel | |||
| 274 | { | 274 | { |
| 275 | public: | 275 | public: |
| 276 | CInstructionLabel() | 276 | CInstructionLabel() |
| 277 | : CInstruction("label"), m_label("") | 277 | : CInstruction("label") |
| 278 | {} | 278 | {} |
| 279 | 279 | ||
| 280 | const bool isLabel() | ||
| 281 | { | ||
| 282 | return true; | ||
| 283 | } | ||
| 284 | |||
| 285 | const std::string getLabelName() | ||
| 286 | { | ||
| 287 | return m_label; | ||
| 288 | } | ||
| 289 | |||
| 290 | CInstructionLabel *factory() | 280 | CInstructionLabel *factory() |
| 291 | { | 281 | { |
| 292 | return new CInstructionLabel; | 282 | return new CInstructionLabel; |
| 293 | } | 283 | } |
| 294 | 284 | ||
| 295 | void compile(std::list<std::string>& params); | 285 | void compile(std::list<std::string>& params) |
| 296 | void execute(CCPU *cpu); | 286 | {} |
| 297 | 287 | ||
| 298 | protected: | 288 | void execute(CCPU *cpu) |
| 299 | std::string m_label; | 289 | {} |
| 300 | }; | 290 | }; |
| 301 | 291 | ||
| 302 | /*============================================================================*/ | 292 | /*============================================================================*/ |
