Coder Social home page Coder Social logo

osi-monitor-roms's People

Contributors

sjgray avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

osi-monitor-roms's Issues

cegmonc2az.asm assemble arithmetic problem

I am usiing this assembler listing with my home built 6502 system. In may ways it duplicates the Ohio superboard I had years ago.
Major difference is rearranging all IO to be in the $Dxxx segment and uing a PS2 keyboard instead of the original scanned matrix. (Interface is similar to ACIA)
To the problem( about 80 lines down):
The screen is still 1k at $D000-$D3FF but the assembler listing calculation does not give the correct result.

SWIDTH	=	COLS-1
TOP	=	SCREEN+START
BASE	=	ROWS-1*WIDTH+TOP
BOT	=	SIZE+1*1024+SCREEN

For my board: SCREEN = $D000, WIDTH = 32, SIZE =0, START =69, COLS = 24. ROWS = 26
The calculations give (verified by examining the output file):
SWIDTH = 23
TOP = $D045
BASE = $D03F
BOT = $D400

The calculation for BASE gives $D035 which is clearly (now) not correct and gave some strange results.
The formula should have been (NB parentheses):
BASE = (ROWS-1) * WIDTH + TOP which gives $D365 and works correctly.
As it happens the formula for BOT was OK for my system (accidental) but it should be:
BOT = (SIZE+1) * 1024 + SCREEN
Admittably I am not using the same assembler but I would assume that the normal arithmetic precedence rules would be followed. (Mine is VASM oldstyle)
I think this may also apply to other listings.
Hope that is useful
Phil

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.