Code Monkey home page Code Monkey logo

x68k_xsp's People

Contributors

mikejmoffitt avatar yosshin4004 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

x68k_xsp's Issues

_xsp_divy_get の引数

GCCのGASに移植している間に、バグが発見されたかもしれません。 READMEによると、もし_xsp_divy_getの引数はだめだったら、返り値は-1です。 _xsp_divy_getのコードの中に、引数のチェックの結果はだめだったら、@fにブランチします。
そのブランチは@@:を指しますが、_xsp_divy_getの中にその@@:レーベルが入っていません。 -1の返り値の変わりに、_xsp_min_divh_setの一番目の`@@:`に行ってしまうと思います。下にご覧ください。

XSPfnc.s:L505

	move.w	A7ID+arg1_w(sp),d0	* d0 = i
	bmi	@f			* i < 0 なら bra
	cmp #6,d0
	bgt	@f			* 6 < i なら bra

まだデバガーで調査をしていないんですけど、move.w #-1, d0の上にあの@@:を書くのは正しそうです。 このコードは、-1の引数を送ると、min_divhは変な数に入れるかもしれません。

XSPfnc.s:L535

@@: <ー(i < 0 || i > 6)なら、ここから_xsp_divy_getが続くと思います。
	cmp #MIN_DIVH_MAX,d0
	ble @f				* #MIN_DIVH_MAX >= h なら bra
	*-----[ MIN_DIVH_MAX < h ]
		moveq.l #MIN_DIVH_MAX,d0	* h = MIN_DIVH_MAX
@@:

	move.w	d0,min_divh		* min_divh 設定

	rts

失礼しました。

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.