mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

  1. --- dosbox-0.61-orig/include/dos_inc.h 2004-01-10 15:03:33.000000000 +0100
  2. +++ dosbox-0.61/include/dos_inc.h 2004-06-08 17:52:39.958890112 +0200
  3. @@ -215,22 +215,22 @@
  4. class MemStruct {
  5. public:
  6. - INLINE Bit8u GetIt(Bit8u&,PhysPt addr) {
  7. + INLINE Bit8u GetIt(Bit8u,PhysPt addr) {
  8. return mem_readb(pt+addr);
  9. }
  10. - INLINE Bit16u GetIt(Bit16u&,PhysPt addr) {
  11. + INLINE Bit16u GetIt(Bit16u,PhysPt addr) {
  12. return mem_readw(pt+addr);
  13. }
  14. - INLINE Bit32u GetIt(Bit32u&,PhysPt addr) {
  15. + INLINE Bit32u GetIt(Bit32u,PhysPt addr) {
  16. return mem_readd(pt+addr);
  17. }
  18. - INLINE void SaveIt(Bit8u&,PhysPt addr,Bit8u val) {
  19. + INLINE void SaveIt(Bit8u,PhysPt addr,Bit8u val) {
  20. mem_writeb(pt+addr,val);
  21. }
  22. - INLINE void SaveIt(Bit16u&,PhysPt addr,Bit16u val) {
  23. + INLINE void SaveIt(Bit16u,PhysPt addr,Bit16u val) {
  24. mem_writew(pt+addr,val);
  25. }
  26. - INLINE void SaveIt(Bit32u&,PhysPt addr,Bit32u val) {
  27. + INLINE void SaveIt(Bit32u,PhysPt addr,Bit32u val) {
  28. mem_writed(pt+addr,val);
  29. }
  30. INLINE void SetPt(Bit16u seg) { pt=PhysMake(seg,0);}
  31. --- dosbox-0.61-orig/src/dos/dos_classes.cpp 2004-01-10 15:03:34.000000000 +0100
  32. +++ dosbox-0.61/src/dos/dos_classes.cpp 2004-06-08 17:56:50.869745864 +0200
  33. @@ -121,7 +121,7 @@
  34. /* FCBs are filled with 0 */
  35. // ....
  36. /* Init file pointer and max_files */
  37. - sSave(sPSP,file_table,RealMake(seg,offsetof(sPSP,files[0])));
  38. + sSave(sPSP,file_table,RealMake(seg,offsetof(sPSP,files)));
  39. sSave(sPSP,max_files,20);
  40. for (i=0;i<20;i++) SetFileHandle(i,0xff);
  41. @@ -218,7 +218,7 @@
  42. MEM_BlockCopy(pt+offsetof(sPSP,cmdtail),Real2Phys(src),128);
  43. } else { // empty
  44. sSave(sPSP,cmdtail.count,0x00);
  45. - mem_writeb(pt+offsetof(sPSP,cmdtail.buffer[0]),0x0d);
  46. + mem_writeb(pt+offsetof(sPSP,cmdtail.buffer),0x0d);
  47. };
  48. };