CPSC 2310 - DAY 6 AUGUST 29, 2016 ================================================================================ JAVA VIRTUAL MACHINE (JVM) -------------------------- bipush will push whatever value you want on the stack. The Java Virtual Machine is a stack based machine. store instructions - from register to memory. all operations are on integer values. relational operators invokevirtual - 1 prints, does not move print head to next line invokevirtual - 2 prints, does move print head to next line. iconst_1 push value 1 to the stack bipush(15) push value 15 to the stack iadd pop top two elements and add, push result to stack iconst_4 push value 4 to the stack imul pop top two elements, mult. push result to stack istor_1 pops 64 from stack and puts it in memory loc. 1 label(done) iconst_1 puts loc. 1 onto the stack invokevirtual(2) print and go to new line return