Blame | Last modification | View Log | Download
SymbOS "nslookup" sources adaptation to sjasmplus syntax and features, for originalvisit http://www.symbos.org/To build use:sjasmplus Cmd-NsLookUp-sj.asmThe adaptation builds binary-identical nslookup.com file.The adaption is intentionally trying to modify absolute minimum amount of linesin original source, all differences are documented in diff patch file:adaptation.patchThe file names with too much specific file path are renamed (the system includesuse the `<>` notation, these will search in include paths first - if providedbyt `-I` option. The output drops absolute "e:\.." path and writes to current workingdirectory (adjustable with `--outprefix` option to target particular folder).And all labels must start at the beginning of line in sjasmplus. Also all instructionsand directives should by default start after some whitespace, which is recommendedway of patching sources when migrating to sjasmplus, but to minimize the impact ofadaptation in this example the option `--dirbol` is used to allow directives atthe beginning of the line.--------------------------------------------------------------------------------------2022-06-09 v1.20.0 updateThe SymbOS relocates binaries only by patching the MSB (most significant byte, alias"high" byte). The sjasmplus now supports specific `RELOCATE_START HIGH` mode whichenables programmer to use also expressions like `ld a,high label`, and get the correctdata for relocation of such instruction.I'm keeping the example source as it was, but to switch to HIGH mode, two lines havebe modified:line 8: `relocate_start` -> `relocate_start high`line 119: `relocate_table` -> `relocate_table +1`To enable high mode, and to produce relocation table pointing ahead of the MSB (that'show SymbOS expects the data, sjasmplus is producing offsets directly onto MSB).--------------------------------------------------------------------------------------The original "#readme.txt" content follows:--------------------------------------------------------------------------------------=======================================* ___ ____ _ ___ ___ ** /__ /__/ / / / /_\ / / /__ ** ___/ ___/ / / /__/ /__/ ___/ ** SYMBIOSIS MULTITASKING ** BASED OPERATING SYSTEM *=======================================N S L O O K U P(Domain name lookup)---------------------------------------Author: Prodatron/SymbiosiSVersion: 1.0Date: 12.01.2016Requires: SymbOS 3.0Memory: 192K (or more)---------------------------------------[...]---------------------------------------This archive contains the followingfiles:.......................................nslookup.com Executablesources\ Source codesNsLookUp-CPC.DSKdisk image (CPC or PCW)NsLookUp-FAT.DSKdisk image (MSX or EP)---------------------------------------For additional information please visithttp://www.symbos.org=======================================