DYSTOPIANPIXEL

Export and import

Save native Odin source, export ordinary text and import it again without confusing the formats.

Next Asset Lab concept artwork showing sprite patterns, palette colours and animation frames
Next Asset Lab concept artwork · Begin with Odin Dev.2k and the foundations of Z80 assembly.
TUTORIAL 1 / PART 14

Export and re-import ordinary text

Why keep a text export?

Odin's native source format is convenient on the Next, but ordinary text is useful for backups, version control, comparison tools and editing on another machine.

Export the current source with:

TS tut01.asm

Re-import the text with:

TL tut01.asm

Reload the native Odin source with:

L tut01.odn

This gives us a useful working pattern: native Odin source for day-to-day work on the machine, and ordinary text exports as the durable portable representation.

What you should have on disk at this point

At this stage, Tutorial 1 should have produced two source files with different purposes:

FilePurpose
tut01.odnOdin-native working source for editing and loading inside Odin.
tut01.asmOrdinary text exported with TS for archival, comparison and version control.

Use LS in the Odin Monitor to confirm that both files are present.

Odin workflow checkpoint

At this point the practical development cycle should be clear enough to repeat without guesswork:

  1. NextZXOS / NextBASIC prompt
  2. .odin
  3. Odin Monitor
  4. NEW / L / TL
  5. EDIT key
  6. Odin Editor
  7. type or change source
  8. EDIT key
  9. Odin Monitor
  10. S -> save
  11. A -> assemble
  12. T -> inspect symbols
  13. M -> inspect memory
  14. R -> run and inspect
  15. TS -> export ordinary text

This loop is part of the production development process for Next Asset Lab, not a throwaway classroom exercise.