kierenj / 0x10c-DevKit

0x10c DevKit
http://0x10c-devkit.com/
39 stars 4 forks source link

jsr 0 produces a two word output #191

Closed RichardLH closed 12 years ago

RichardLH commented 12 years ago

jsr 0 (and all other short calls/jumps, etc) should generate single word instructions.

Current output is always two words.

kierenj commented 12 years ago

Can you confirm that's for JSR 0 and not JSR (label-name)? Currently referencing a label will produce two-word instructions

RichardLH commented 12 years ago

It was 'jsr label'. I hadn't realised that you treated labels differently to constants.

kierenj commented 12 years ago

It could be a single word instruction, if relocatable code isn't being generated. An optimisation that's not implemented so not such a bad idea !