Comments (4)
According to the SDCC manual, if I got the meaning correctly, it should be the other way around.
As we're not using the --reserve-regs-iy
flag, IY can be used as a temporary register, as written in section 4.3 of the manual:
Register A, B, C, D, E, H, L and IY are used as a temporary registers for holding variables.
from devkitsms.
I mistyped there - in the above I meant the --reserve-regs-iy
flag which I have corrected in the original post.
Despite what the manual says, I have come across instances where sdcc has used an old IY value across a function call that did not indicate IY was preserved. I tried some test compiles tonight to try to find an example without success but I will continue to try a few more and see if I can find an example.
from devkitsms.
If you find that some generated code is assuming that IY is unchanged after a call, then it might be an SDCC error - or you might have called a function that has a __preserves_regs( )
declaration attached to it.
In either case please let me know. I'm leaving this open for your feedback :)
(I also edited my last post to fix that --reserve-regs-iy
)
from devkitsms.
closing this
from devkitsms.
Related Issues (20)
- Example project HOT 4
- PSGSetMusicVolumeAttenuation seems not to be working HOT 8
- Can't find sdcc 3.9.5 HOT 4
- SMS_readPaddle() never returns if the paddle is disconnected HOT 5
- Can I use the makesms to convert the file that contains CODE and DATA bank HOT 22
- Interrupt and VDP processing HOT 8
- 32bits variables HOT 2
- Using PSGlib with banked code HOT 4
- Macros to save/restore the bank mapped to slot2? HOT 9
- Ability to install a vblank handler HOT 7
- Need clear vram on startup HOT 3
- SG-1000 ROMs on SC-3000 - Sega standard. HOT 59
- Adding examples to this repo HOT 6
- issue with compressed songs spawning multiple banks HOT 3
- New Unsafe and Vertical Orientation Functions HOT 17
- SG/SC -> SG_byte_brief_array_to_VDP_data HOT 1
- SMS_saveROMBank() implementation in SMSLib.h makes it only usable in the same scope as SMS_restoreBank() HOT 9
- PSGLib - Allow to set volume attenuation on SFX HOT 4
- ihx2sms fails with multi-segment static libraries HOT 9
- devkitSMS adopted in z88dk HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devkitsms.