18 Bytes !!! Anyone can beat this? HEX16 for 8086 (Developers)
You can still improve register usage. Use rotations on one register instead of shifts on two (4 rotations by 4 bits = no-op).
But anyway, what are you trying to show?
1. "Work-In-Progress version" certainly may contain some (possibly even unused) debug code and there is nothing wrong with it.
2. Optimizing such pieces of code is wasting time, it will be surely removed in a "production" version.
3. You can find source files where unclear tricks (like the old DAS one) are commented and explained, better cut-and-paste from there, instead of introducing additional noise.
Complete thread:
- 18 Bytes !!! Anyone can beat this? HEX16 for 8086 - DOS386, 13.04.2009, 10:20 (Developers)
- 18 Bytes! Anyone can beat this? - No - ecm, 13.04.2009, 14:08
- 18 Bytes! Anyone can beat this? - No DAS - DOS386, 13.04.2009, 14:32
- 18 Bytes! Anyone can beat this? - No DAS - rr, 13.04.2009, 16:13
- 18 Bytes! Anyone can beat this? - No DAS - DOS386, 13.04.2009, 14:32
- 18 Bytes !!! Anyone can beat this? HEX16 for 8086 - mht, 13.04.2009, 16:04
- 18 Bytes !!! Anyone can beat this? HEX16 for 8086 | ROL - DOS386, 18.05.2009, 05:54
- 18 Bytes! Anyone can beat this? - No - ecm, 13.04.2009, 14:08