Thread: Need to know parameter format for a Call function?

  1. #121
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    Now I haven't seen that trolling tactic in aeons.

    Bravissimo

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  2. #122
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    Just in case it looks like it, I'm not talking about the guy claiming to be "railroaded".

    If that happened it sucks, but I'm not speculating on that one way or the other.

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  3. #123
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by phantomotap View Post
    O_o

    Now I haven't seen that trolling tactic in aeons.

    Bravissimo

    Soma
    Websters Dictioary: Troll vt. vi. 1 to sing the parts of (a round, etc.) in succession 2 to sing in a full voice 3 to fish (in) with a baited line trailed behind a slow moving boat

    I guess you mean the third definition? It doesn't make sense unless you think I am "trolling" for information which I can agree with. Hunting the iinformation I'm looking for on the internet is a lot slower than just asking someone who knows. So far the only one pn this forum who seems to know any information that I can use is Elkvis. It's obvious that you don't know the information that I'm looking for so why don't you just stop making useless posts?

    Will

    PS: Eons is spelled without an a as the first letter.
    Last edited by Will1; 07-30-2014 at 06:22 PM.

  4. #124
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by Will1 View Post
    I already know enough about the Intel and AMD microprocessors and your link to Wikipedia was virtually useless to me.



    Posting little sarcasms doesn't accomplish anything except, as I told Elkvis, create animosty, I already knew what LOL means but you were sarcatically using it rather than admitting that you don't know the answer to my question. I trust that Elkvis does know the answer and he gave it to me rather than making useless posts like you have done.

    Will
    Then have you learned that nearly all if NOT all microprocessors have the registers inside the chip!
    That is one of the main differences between a microprocessors and a old style mainframe system.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #125
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by stahta01 View Post
    Then have you learned that nearly all if NOT all microprocessors have the registers inside the chip!
    That is one of the main differences between a microprocessors and a old style mainframe system.

    Tim S.
    Elkview already told me that so why are you bothering to repeat it? And e/OS is NOT an "old style" mainframe system. It is the latest mainframe technology and ,as I've said before, mainframe technology is way ahead of PC technology but is too expensive to be used in a PC (Personal Computer). I'm trying to move PC technology ahead a little bit so it can be more competitive with mainframe technology at a fraction of the price.

    Will
    Last edited by Will1; 07-30-2014 at 06:40 PM.

  6. #126
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by Will1 View Post
    Elkview already told me that so why are you bothering to repeat it? And e/OS is NOT an "old style" mainframe system. It is the latest mainframe technology and ,as I've said before, mainframe technology is way ahead of PC technology but is too expensive to be used in a PC (Personal Computer). I'm trying to move PC technology ahead a little bit so it can be more competitive with mainframe technology at a fraction of the price.

    Will
    Because you seem to have issues learning new things.
    Or using the Internet; or reading online information.
    I am amazed an assembly programmer does NOT read the manuals for the chip-set he/she is programming!

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  7. #127
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by Elkvis View Post
    You are expecting to have all of the same facilities and the same level of control that you have in a mainframe or DOS environment, and you simply cannot.
    Elkvis - in one sentence you have described the weakness of the current PC Operating Systems. I reprogrammed ADAM to run on Windows but the Operating system either doesn't allow it or can't do what a mainframe does routinely and still maintains "Security" probably better than Windows does. Having control of the hardware allows me to be innovative. Denying me control of the hardware, as modern PCs do, stops me from innovating useful software for program developers to use. Besides, Windows is not nearly as "secure" as you think it is. In order to make a limited versin of ADAM available on Windows I had to violate the "memory protection" feature. I managed to do it. In a mainframe environment, if you wrote a "virus" it would take less than a minute to replace the infected hardware and continue running. Sorry to go back to a post that we both probably agree is of little consequence now but I thought I'd just mention the fact that Microsoft isn't near as technologically superior as they think they are.

  8. #128

  9. #129
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by Codeplug View Post
    Damn infinite loops. Ctrl-C.

    gg
    Try CTL-ALT-DELETE or just turn your computer off and back on to reboot it.

    Will

  10. #130
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by Will1 View Post
    Elkvis - in one sentence you have described the weakness of the current PC Operating Systems. I reprogrammed ADAM to run on Windows but the Operating system either doesn't allow it or can't do what a mainframe does routinely and still maintains "Security" probably better than Windows does. Having control of the hardware allows me to be innovative. Denying me control of the hardware, as modern PCs do, stops me from innovating useful software for program developers to use. Besides, Windows is not nearly as "secure" as you think it is. In order to make a limited versin of ADAM available on Windows I had to violate the "memory protection" feature. I managed to do it. In a mainframe environment, if you wrote a "virus" it would take less than a minute to replace the infected hardware and continue running. Sorry to go back to a post that we both probably agree is of little consequence now but I thought I'd just mention the fact that Microsoft isn't near as technologically superior as they think they are.
    I think you might do well to look into XenServer. I think it would get you pretty close to the level of control you're used to having on a mainframe. My experience with a mainframe was that there is an underlying base system that did very little except provide access to the hardware, and then a number of "partitions" that ran on top of that. Each partition is essentially a virtual machine of its own, segregated from the others, with its own memory space. XenServer would allow you to have a windows system running along side of a basic operating system of your own, which may be based on a linux kernel, or a custom kernel that you write, or whatever. Then you can do the things you want to do, the way that you want to do them, without the windows operating system getting in the way, and still have the security that is required in the modern world.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  11. #131
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by Elkvis View Post
    I think you might do well to look into XenServer. I think it would get you pretty close to the level of control you're used to having on a mainframe. My experience with a mainframe was that there is an underlying base system that did very little except provide access to the hardware, and then a number of "partitions" that ran on top of that. Each partition is essentially a virtual machine of its own, segregated from the others, with its own memory space. XenServer would allow you to have a windows system running along side of a basic operating system of your own, which may be based on a linux kernel, or a custom kernel that you write, or whatever. Then you can do the things you want to do, the way that you want to do them, without the windows operating system getting in the way, and still have the security that is required in the modern world.
    Thanks Elkvis! The problem I still have is allowing Windows programs to create and accesss ADAM files. Creating a kernal that has all of the facilities of Windows that program developers seem to be enamored of is a little beyond my capabilities right now. I'm rather fond of the way I did it under DOS. "Those who would give up essential liberty to purchase a little safety, deserve neither liberty nor safety." It seems to me that my liberty to manipulate the DS and ES registers has been sacrificed in the modern world in order to purchase a little security. I'll grant you that there seem to be fewer "viruses" floating around but that maybe because anyone who has the ability to write a "virus" are now aware that they can do better being program developers than maybe getting caught commiting a crime and spending time in prison. Despite "protected memory" feature of PCs, I'm sure that I could write a "virus" but what would I gain by that and, besides, it would violate my morality. The quote I put in this post earlier was made by Ben Franklin.

    Will

  12. #132
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104

    Time to start thinking about the 2014 NFL season and updating Pro Football Prophet.

    The Prophet is a system that I programmed to compare statistics and predict NFL football games. Since I programmed it about 20 years ago and fiddled with the algorithm for predicting the outcomes of NFL games it has consistently beaten the bookies by about a two to one margin if you had bet on the games that it recommended. If you want to match the two teams who are playing a game it gives you all of the season statistics for the two teams so you can compare them. It makes a prediction and always the recommendation on whether to bet or not is if the difference between it's point spread and the bookies' point spread is 3 points or less, DON'T BET. It has a history of the past 16 games that every team in the NFL has played. Anyone who wants to try the system can send me an email to:

    [email protected]

    and I'll send it to you free.

    Will
    Last edited by Will1; 07-31-2014 at 07:26 AM.

  13. #133
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by Will1 View Post
    Thanks Elkvis! The problem I still have is allowing Windows programs to create and accesss ADAM files.
    You'd probably provide a network connection and API to access ADAM from other virtual machines. To do what you want, the way you want to do it, you won't be able to run from within Windows. You could run a DOS-like system, but unfortunately, that only gives you access to 1MB of memory, which is pretty limiting, if you expect to handle modern database workloads. If you're willing to give up DS and ES register manipulation, then you can run in a less constrained environment.

    I'm actually willing to help you rewrite the code to not use the segment registers if you're interested. Your code could then run on any modern operating system, without requiring any special trickery of the kernel. I'd also recommend re-implementing it in a language that is more portable, such as C or C++. If it's only available as an x86 assembly language program, you significantly limit your reach. Most mobile phones and tablets won't run it, and that seems to be the direction of the computing industry these days. Even the server market is starting to see some infiltration of ARM hardware.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  14. #134
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Quote Originally Posted by Will1 View Post
    The Prophet is a system that I programmed to compare statistics and predict NFL football games. Since I programmed it about 20 years ago and fiddled with the algorithm for predicting the outcomes of NFL games it has consistently beaten the bookies by about a two to one margin if you had bet on the games that it recommended. If you want to match the two teams who are playing a game it gives you all of the season statistics for the two teams so you can compare them. It makes a prediction and always the recommendation on whether to bet or not is if the difference between it's point spread and the bookies' point spread is 3 points or less, DON'T BET. It has a history of the past 16 games that every team in the NFL has played. Anyone who wants to try the system can send me an email to:

    [email protected]

    and I'll send it to you free.

    Will
    Why not post it as a zip file here?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  15. #135
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by Sebastiani View Post
    Why not post it as a zip file here?
    I don't know how. Besides, I haven't updated it yet for the 2014 season. There are 2 versions, 1 for Windows XP and oldder desktops and one for Windows 7 desktops. I haven't had much success on laptops, haven't tested it but I've had reports that it doesn't work on laptops. It won't take more than a day or 2 to update it for the 2014 season but I haven't gotten around to it yet. LOL.

    Will

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function call Overhead and Function Call Stack
    By Alam Khan in forum C++ Programming
    Replies: 2
    Last Post: 04-26-2014, 08:28 AM
  2. Replies: 4
    Last Post: 10-03-2011, 06:30 AM
  3. Replies: 13
    Last Post: 08-24-2006, 12:22 AM
  4. Parameter in a function
    By cpluspluser in forum C++ Programming
    Replies: 2
    Last Post: 04-09-2003, 07:48 PM