Code Monkey home page Code Monkey logo

Comments (2)

ped7g avatar ped7g commented on May 24, 2024

yes, you should never count bytes manually.

sjasmplus has two main modes:

a) raw output (--raw or OUTPUT), where ORG does affect how label values are assigned and jumps/calls calculated, but padding bytes must be emitted, for example with DS:

  ORG 0
  ; rst 0x00 handler
  di
  ;..
  DS 0x20-$, 0 ; output nops (value 0) until address 0x20
  ; rst 0x20 handler
  ret
  DS 0x66-$, 0 ; nops until 0x66
  ; rst 0x66 handler
  retn

b) virtual device mode, where ORG does redirect following assembling to desired address, and you can save "current" state of virtual memory by SAVEBIN/SAVEDEV/SAVESNA/SAVETAP/... directives, ie.:

  DEVICE AMSTRADCPC6128
  ORG 0x00
  di
  ;...
  ORG 0x20
  ; ...
  ORG 0x66
  ; ...
  SAVEBIN "code.bin", 0x0000, 0x400  ; without 0x38 handler below (!)
  ORG 0x38
  di
  ; ...
  SAVEBIN "code38.bin",0x0000,0x400 ; current memory -> this file contains also 0x38 handler

from sjasmplus.

vampirehunt2 avatar vampirehunt2 commented on May 24, 2024

Thank you!

from sjasmplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.