Giter Site home page Giter Site logo

retrodeluxe / sdcc-msx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from svn2github/sdcc

4.0 2.0 0.0 86.22 MB

Fork of sdcc that provides msx specific extensions

Makefile 9.05% Shell 0.42% Perl 0.29% Java 0.05% C 51.63% C++ 1.49% PHP 0.06% HTML 0.09% JavaScript 0.05% CSS 0.01% M4 0.31% Awk 0.01% Emacs Lisp 0.04% Assembly 0.35% Batchfile 0.01% Objective-C 35.86% Lex 0.03% Yacc 0.11% Roff 0.15% Python 0.02%

sdcc-msx's Introduction

sdcc-msx

Fork of sdcc that provides msx specific extensions (mz80)

  • Added page command line options

    -bo  <num>             use code page <num>
    -ba  <num>             use data page <num>
    
  • Added pragmas CODE_PAGE and DATA_PAGE to select code and data pages inside a module

  • Added support for "--model-large"

    • This will make functions banked unless otherwise specified with __nonbanked

    • Every banked call is replaced with

      call __sdcc_banked_call
      dw function_addr (LSB, MSB)
      ds bank (HIB)
      
    • Base bank 24bit addresses need to be provided to the linker

      -b _CODE_PAGE_1=0x1A000 -b _CODE_PAGE_2=0x2A000 ... -B _DATA_PAGE_3=0x38000 ... etc
      
    • The linker will resolve banked calls based on the segment each symbol belongs to based on bo, ba and pragma bank

    Note that as bank number comes from the high byte of the 24bit address of the page, is only possible to use one type of page (either CODE or DATA) per 0x10000 address range, even if they are not overlapping.

Known issues

  • Banked function pointers are (obviously) not supported, but they can be handled manually.

Todo

  • Add an msx specific sub port instead of using mz80
  • Add support for R800 MUL* instructions

Conversion from Intel Hex Format to MSX ROM

sdcc-msx's People

Contributors

geijoenr avatar retrodeluxe avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.